Interface NamedValueContract


  • public interface NamedValueContract
    An immutable client-side representation of NamedValueContract.
    • Method Detail

      • id

        String id()
        Gets the id property: Fully qualified resource Id for the resource.
        Returns:
        the id value.
      • name

        String name()
        Gets the name property: The name of the resource.
        Returns:
        the name value.
      • type

        String type()
        Gets the type property: The type of the resource.
        Returns:
        the type value.
      • displayName

        String displayName()
        Gets the displayName property: Unique name of NamedValue. It may contain only letters, digits, period, dash, and underscore characters.
        Returns:
        the displayName value.
      • value

        String value()
        Gets 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.
      • keyVault

        KeyVaultContractProperties keyVault()
        Gets the keyVault property: KeyVault location details of the namedValue.
        Returns:
        the keyVault value.
      • tags

        List<String> tags()
        Gets the tags property: Optional tags that when provided can be used to filter the NamedValue list.
        Returns:
        the tags value.
      • secret

        Boolean secret()
        Gets the secret property: Determines whether the value is a secret and should be encrypted or not. Default value is false.
        Returns:
        the secret value.
      • innerModel

        NamedValueContractInner innerModel()
        Gets the inner com.azure.resourcemanager.apimanagement.fluent.models.NamedValueContractInner object.
        Returns:
        the inner object.
      • update

        NamedValueContract.Update update()
        Begins update for the NamedValueContract resource.
        Returns:
        the stage of resource update.
      • refresh

        NamedValueContract refresh()
        Refreshes the resource to sync with Azure.
        Returns:
        the refreshed resource.
      • refresh

        NamedValueContract refresh​(com.azure.core.util.Context context)
        Refreshes the resource to sync with Azure.
        Parameters:
        context - The context to associate with this operation.
        Returns:
        the refreshed resource.
      • listValue

        NamedValueSecretContract listValue()
        Gets the secret of the named value specified by its identifier.
        Returns:
        the secret of the named value specified by its identifier.
        Throws:
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • listValueWithResponse

        com.azure.core.http.rest.Response<NamedValueSecretContract> listValueWithResponse​(com.azure.core.util.Context context)
        Gets the secret of the named value specified by its identifier.
        Parameters:
        context - The context to associate with this operation.
        Returns:
        the secret of the named value specified by its identifier.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • refreshSecret

        NamedValueContract refreshSecret()
        Refresh the secret of the named value specified by its identifier.
        Returns:
        namedValue details.
        Throws:
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • refreshSecret

        NamedValueContract refreshSecret​(com.azure.core.util.Context context)
        Refresh the secret of the named value specified by its identifier.
        Parameters:
        context - The context to associate with this operation.
        Returns:
        namedValue details.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.