Class SecretReferenceProperty.Builder<S>
java.lang.Object
com.inductiveautomation.ignition.gateway.secrets.SecretReferenceProperty.Builder<S>
- Type Parameters:
S- the resource type that contains theSecretConfig
- Enclosing interface:
- SecretReferenceProperty<S>
Builder for a
SecretReferenceProperty.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build theSecretReferenceProperty.setGetSecretConfigFunction(Function<S, SecretConfig> getSecretConfigFunction) Set the function to get theSecretConfigfrom the resource.setUpdateSecretConfigFunction(BiFunction<S, SecretConfig, S> updateSecretConfigFunction) Set the function to update theSecretConfigon the resource.
-
Method Details
-
setGetSecretConfigFunction
public SecretReferenceProperty.Builder<S> setGetSecretConfigFunction(Function<S, SecretConfig> getSecretConfigFunction) Set the function to get theSecretConfigfrom the resource.- Parameters:
getSecretConfigFunction- the function to get theSecretConfigfrom the resource- Returns:
- this builder
-
setUpdateSecretConfigFunction
public SecretReferenceProperty.Builder<S> setUpdateSecretConfigFunction(BiFunction<S, SecretConfig, S> updateSecretConfigFunction) Set the function to update theSecretConfigon the resource.- Parameters:
updateSecretConfigFunction- the function to update theSecretConfigon the resource- Returns:
- this builder
-
build
Build theSecretReferenceProperty.- Returns:
- the built
SecretReferenceProperty - Throws:
NullPointerException- if either the get or update function is not set
-