Class NamedValueContractInner

java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.apimanagement.fluent.models.NamedValueContractInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>

public final class NamedValueContractInner extends com.azure.core.management.ProxyResource
NamedValue details.
  • Constructor Details

    • NamedValueContractInner

      public NamedValueContractInner()
      Creates an instance of NamedValueContractInner class.
  • Method Details

    • type

      public String type()
      Get the type property: The type of the resource.
      Overrides:
      type in class com.azure.core.management.ProxyResource
      Returns:
      the type value.
    • name

      public String name()
      Get the name property: The name of the resource.
      Overrides:
      name in class com.azure.core.management.ProxyResource
      Returns:
      the name value.
    • id

      public String id()
      Get the id property: Fully qualified resource Id for the resource.
      Overrides:
      id in class com.azure.core.management.ProxyResource
      Returns:
      the id value.
    • 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 NamedValueContractInner 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 NamedValueContractInner 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. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value.
      Returns:
      the value value.
    • 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:
      value - the value value to set.
      Returns:
      the NamedValueContractInner object itself.
    • keyVault

      public KeyVaultContractProperties keyVault()
      Get the keyVault property: KeyVault location details of the namedValue.
      Returns:
      the keyVault value.
    • withKeyVault

      public NamedValueContractInner withKeyVault(KeyVaultContractProperties keyVault)
      Set the keyVault property: KeyVault location details of the namedValue.
      Parameters:
      keyVault - the keyVault value to set.
      Returns:
      the NamedValueContractInner object itself.
    • provisioningState

      public String provisioningState()
      Get the provisioningState property: The provisioning state.
      Returns:
      the provisioningState value.
    • 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 NamedValueContractInner 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 NamedValueContractInner 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 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:
      secret - the secret value to set.
      Returns:
      the NamedValueContractInner object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
      Overrides:
      toJson in class com.azure.core.management.ProxyResource
      Throws:
      IOException
    • fromJson

      public static NamedValueContractInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of NamedValueContractInner from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of NamedValueContractInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the NamedValueContractInner.