NamedValueContractInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. apimanagement. fluent. models. NamedValueContractInner
- com.
- com.
public final class NamedValueContractInner
extends ProxyResource
NamedValue details.
Constructor Summary
Constructor | Description |
---|---|
NamedValueContractInner() |
Creates an instance of Named |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
displayName()
Get the display |
Key |
keyVault()
Get the key |
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 Named |
void |
validate()
Validates the instance. |
String |
value()
Get the value property: Value of the Named |
Named |
withDisplayName(String displayName)
Set the display |
Named |
withKeyVault(KeyVaultContractProperties keyVault)
Set the key |
Named |
withSecret(Boolean secret)
Set the secret property: Determines whether the value is a secret and should be encrypted or not. |
Named |
withTags(List<String> tags)
Set the tags property: Optional tags that when provided can be used to filter the Named |
Named |
withValue(String value)
Set the value property: Value of the Named |
Methods inherited from ProxyResource
Methods inherited from java.lang.Object
Constructor Details
NamedValueContractInner
public NamedValueContractInner()
Creates an instance of NamedValueContractInner class.
Method Details
displayName
public String displayName()
Get the displayName property: Unique name of NamedValue. It may contain only letters, digits, period, dash, and underscore characters.
Returns:
keyVault
public KeyVaultContractProperties keyVault()
Get the keyVault property: KeyVault location details of the namedValue.
Returns:
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:
tags
public List
Get the tags property: Optional tags that when provided can be used to filter the NamedValue list.
Returns:
validate
public void validate()
Validates the instance.
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. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value.
Returns:
withDisplayName
public NamedValueContractInner withDisplayName(String displayName)
Set the displayName property: Unique name of NamedValue. It may contain only letters, digits, period, dash, and underscore characters.
Parameters:
Returns:
withKeyVault
public NamedValueContractInner withKeyVault(KeyVaultContractProperties keyVault)
Set the keyVault property: KeyVault location details of the namedValue.
Parameters:
Returns:
withSecret
public NamedValueContractInner 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:
Returns:
withTags
public NamedValueContractInner withTags(List
Set the tags property: Optional tags that when provided can be used to filter the NamedValue list.
Parameters:
Returns:
withValue
public NamedValueContractInner 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. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for