Class PolicyContractProperties
- java.lang.Object
-
- com.azure.resourcemanager.apimanagement.fluent.models.PolicyContractProperties
-
public final class PolicyContractProperties extends Object
Policy contract Properties.
-
-
Constructor Summary
Constructors Constructor Description PolicyContractProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PolicyContentFormat
format()
Get the format property: Format of the policyContent.void
validate()
Validates the instance.String
value()
Get the value property: Contents of the Policy as defined by the format.PolicyContractProperties
withFormat(PolicyContentFormat format)
Set the format property: Format of the policyContent.PolicyContractProperties
withValue(String value)
Set the value property: Contents of the Policy as defined by the format.
-
-
-
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 PolicyContractProperties 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 PolicyContractProperties object itself.
-
format
public PolicyContentFormat format()
Get the format property: Format of the policyContent.- Returns:
- the format value.
-
withFormat
public PolicyContractProperties withFormat(PolicyContentFormat format)
Set the format property: Format of the policyContent.- Parameters:
format
- the format value to set.- Returns:
- the PolicyContractProperties object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-