Class PolicyContractInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.resourcemanager.apimanagement.fluent.models.PolicyContractInner
-
public final class PolicyContractInner extends com.azure.core.management.ProxyResource
Policy Contract details.
-
-
Constructor Summary
Constructors Constructor Description PolicyContractInner()
-
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.PolicyContractInner
withFormat(PolicyContentFormat format)
Set the format property: Format of the policyContent.PolicyContractInner
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 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.
-
-