Class Secret
- java.lang.Object
-
- com.azure.resourcemanager.appcontainers.models.Secret
-
public final class Secret extends Object
Secret definition.
-
-
Constructor Summary
Constructors Constructor Description Secret()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
name()
Get the name property: Secret Name.void
validate()
Validates the instance.String
value()
Get the value property: Secret Value.Secret
withName(String name)
Set the name property: Secret Name.Secret
withValue(String value)
Set the value property: Secret Value.
-
-
-
Method Detail
-
name
public String name()
Get the name property: Secret Name.- Returns:
- the name value.
-
withName
public Secret withName(String name)
Set the name property: Secret Name.- Parameters:
name
- the name value to set.- Returns:
- the Secret object itself.
-
value
public String value()
Get the value property: Secret Value.- Returns:
- the value value.
-
withValue
public Secret withValue(String value)
Set the value property: Secret Value.- Parameters:
value
- the value value to set.- Returns:
- the Secret object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-