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()
-
-