Class NamedValueUpdateParameterProperties
- java.lang.Object
-
- com.azure.resourcemanager.apimanagement.models.NamedValueEntityBaseParameters
-
- com.azure.resourcemanager.apimanagement.fluent.models.NamedValueUpdateParameterProperties
-
public final class NamedValueUpdateParameterProperties extends NamedValueEntityBaseParameters
NamedValue Contract properties.
-
-
Constructor Summary
Constructors Constructor Description NamedValueUpdateParameterProperties()
-
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.void
validate()
Validates the instance.String
value()
Get the value property: Value of the NamedValue.NamedValueUpdateParameterProperties
withDisplayName(String displayName)
Set the displayName property: Unique name of NamedValue.NamedValueUpdateParameterProperties
withKeyVault(KeyVaultContractCreateProperties keyVault)
Set the keyVault property: KeyVault location details of the namedValue.NamedValueUpdateParameterProperties
withSecret(Boolean secret)
Set the secret property: Determines whether the value is a secret and should be encrypted or not.NamedValueUpdateParameterProperties
withTags(List<String> tags)
Set the tags property: Optional tags that when provided can be used to filter the NamedValue list.NamedValueUpdateParameterProperties
withValue(String value)
Set the value property: Value of the NamedValue.-
Methods inherited from class com.azure.resourcemanager.apimanagement.models.NamedValueEntityBaseParameters
secret, tags
-
-
-
-
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 NamedValueUpdateParameterProperties 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 NamedValueUpdateParameterProperties 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 NamedValueUpdateParameterProperties 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 NamedValueUpdateParameterProperties object itself.
-
keyVault
public KeyVaultContractCreateProperties keyVault()
Get the keyVault property: KeyVault location details of the namedValue.- Returns:
- the keyVault value.
-
withKeyVault
public NamedValueUpdateParameterProperties withKeyVault(KeyVaultContractCreateProperties keyVault)
Set the keyVault property: KeyVault location details of the namedValue.- Parameters:
keyVault
- the keyVault value to set.- Returns:
- the NamedValueUpdateParameterProperties object itself.
-
withTags
public NamedValueUpdateParameterProperties withTags(List<String> tags)
Set the tags property: Optional tags that when provided can be used to filter the NamedValue list.- Overrides:
withTags
in classNamedValueEntityBaseParameters
- Parameters:
tags
- the tags value to set.- Returns:
- the NamedValueEntityBaseParameters object itself.
-
withSecret
public NamedValueUpdateParameterProperties withSecret(Boolean secret)
Set the secret property: Determines whether the value is a secret and should be encrypted or not. Default value is false.- Overrides:
withSecret
in classNamedValueEntityBaseParameters
- Parameters:
secret
- the secret value to set.- Returns:
- the NamedValueEntityBaseParameters object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classNamedValueEntityBaseParameters
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-