Class PolicyContractInner


  • public final class PolicyContractInner
    extends com.azure.core.management.ProxyResource
    Policy Contract details.
    • Constructor Detail

      • PolicyContractInner

        public PolicyContractInner()
    • Method Detail

      • value

        public String value()
        Get the value property: Contents of the Policy as defined by the format.
        Returns:
        the value value.
      • withValue

        public PolicyContractInner withValue​(String value)
        Set the value property: Contents of the Policy as defined by the format.
        Parameters:
        value - the value value to set.
        Returns:
        the PolicyContractInner object itself.
      • format

        public PolicyContentFormat format()
        Get the format property: Format of the policyContent.
        Returns:
        the format value.
      • withFormat

        public PolicyContractInner withFormat​(PolicyContentFormat format)
        Set the format property: Format of the policyContent.
        Parameters:
        format - the format value to set.
        Returns:
        the PolicyContractInner object itself.
      • validate

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