Class StringSource
- java.lang.Object
-
- io.fabric8.openshift.api.model.config.v1.StringSource
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<StringSourceBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class StringSource extends Object implements io.fabric8.kubernetes.api.builder.Editable<StringSourceBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
StringSource allows specifying a string inline, or externally via env var or file. When it contains only a string value, it marshals to a simple JSON string.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StringSource()No args constructor for use in serializationStringSource(String env, String file, String keyFile, String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringSourceBuilderedit()Map<String,Object>getAdditionalProperties()StringgetEnv()Env specifies an envvar containing the cleartext value, or an encrypted value if the keyFile is specified.StringgetFile()File references a file containing the cleartext value, or an encrypted value if a keyFile is specified.StringgetKeyFile()KeyFile references a file containing the key to use to decrypt the value.StringgetValue()Value specifies the cleartext value, or an encrypted value if keyFile is specified.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetEnv(String env)Env specifies an envvar containing the cleartext value, or an encrypted value if the keyFile is specified.voidsetFile(String file)File references a file containing the cleartext value, or an encrypted value if a keyFile is specified.voidsetKeyFile(String keyFile)KeyFile references a file containing the key to use to decrypt the value.voidsetValue(String value)Value specifies the cleartext value, or an encrypted value if keyFile is specified.StringSourceBuildertoBuilder()
-
-
-
Method Detail
-
getEnv
public String getEnv()
Env specifies an envvar containing the cleartext value, or an encrypted value if the keyFile is specified.
-
setEnv
public void setEnv(String env)
Env specifies an envvar containing the cleartext value, or an encrypted value if the keyFile is specified.
-
getFile
public String getFile()
File references a file containing the cleartext value, or an encrypted value if a keyFile is specified.
-
setFile
public void setFile(String file)
File references a file containing the cleartext value, or an encrypted value if a keyFile is specified.
-
getKeyFile
public String getKeyFile()
KeyFile references a file containing the key to use to decrypt the value.
-
setKeyFile
public void setKeyFile(String keyFile)
KeyFile references a file containing the key to use to decrypt the value.
-
getValue
public String getValue()
Value specifies the cleartext value, or an encrypted value if keyFile is specified.
-
setValue
public void setValue(String value)
Value specifies the cleartext value, or an encrypted value if keyFile is specified.
-
edit
public StringSourceBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<StringSourceBuilder>
-
toBuilder
public StringSourceBuilder toBuilder()
-
-