Class NamedValueUpdateParameters
- java.lang.Object
-
- com.azure.resourcemanager.apimanagement.models.NamedValueUpdateParameters
-
public final class NamedValueUpdateParameters extends Object
NamedValue update Parameters.
-
-
Constructor Summary
Constructors Constructor Description NamedValueUpdateParameters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
displayName()
Get the displayName property: Unique name of NamedValue.KeyVaultContractCreateProperties
keyVault()
Get the keyVault property: KeyVault location details of the namedValue.Boolean
secret()
Get the secret property: Determines whether the value is a secret and should be encrypted or not.List<String>
tags()
Get the tags property: Optional tags that when provided can be used to filter the NamedValue list.void
validate()
Validates the instance.String
value()
Get the value property: Value of the NamedValue.NamedValueUpdateParameters
withDisplayName(String displayName)
Set the displayName property: Unique name of NamedValue.NamedValueUpdateParameters
withKeyVault(KeyVaultContractCreateProperties keyVault)
Set the keyVault property: KeyVault location details of the namedValue.NamedValueUpdateParameters
withSecret(Boolean secret)
Set the secret property: Determines whether the value is a secret and should be encrypted or not.NamedValueUpdateParameters
withTags(List<String> tags)
Set the tags property: Optional tags that when provided can be used to filter the NamedValue list.NamedValueUpdateParameters
withValue(String value)
Set the value property: Value of the NamedValue.
-
-
-
Method Detail
-
displayName
public String displayName()
Get the displayName property: Unique name of NamedValue. It may contain only letters, digits, period, dash, and underscore characters.- Returns:
- the displayName value.
-
withDisplayName
public NamedValueUpdateParameters withDisplayName(String displayName)
Set the displayName property: Unique name of NamedValue. It may contain only letters, digits, period, dash, and underscore characters.- Parameters:
displayName
- the displayName value to set.- Returns:
- the NamedValueUpdateParameters object itself.
-
value
public String value()
Get the value property: Value of the NamedValue. Can contain policy expressions. It may not be empty or consist only of whitespace.- Returns:
- the value value.
-
withValue
public NamedValueUpdateParameters withValue(String value)
Set the value property: Value of the NamedValue. Can contain policy expressions. It may not be empty or consist only of whitespace.- Parameters:
value
- the value value to set.- Returns:
- the NamedValueUpdateParameters object itself.
-
keyVault
public KeyVaultContractCreateProperties keyVault()
Get the keyVault property: KeyVault location details of the namedValue.- Returns:
- the keyVault value.
-
withKeyVault
public NamedValueUpdateParameters withKeyVault(KeyVaultContractCreateProperties keyVault)
Set the keyVault property: KeyVault location details of the namedValue.- Parameters:
keyVault
- the keyVault value to set.- Returns:
- the NamedValueUpdateParameters object itself.
-
tags
public List<String> tags()
Get the tags property: Optional tags that when provided can be used to filter the NamedValue list.- Returns:
- the tags value.
-
withTags
public NamedValueUpdateParameters withTags(List<String> tags)
Set the tags property: Optional tags that when provided can be used to filter the NamedValue list.- Parameters:
tags
- the tags value to set.- Returns:
- the NamedValueUpdateParameters object itself.
-
secret
public Boolean secret()
Get the secret property: Determines whether the value is a secret and should be encrypted or not. Default value is false.- Returns:
- the secret value.
-
withSecret
public NamedValueUpdateParameters withSecret(Boolean secret)
Set the secret property: Determines whether the value is a secret and should be encrypted or not. Default value is false.- Parameters:
secret
- the secret value to set.- Returns:
- the NamedValueUpdateParameters object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-