PolicyContractInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. apimanagement. fluent. models. PolicyContractInner
- com.
- com.
public final class PolicyContractInner
extends ProxyResource
Policy Contract details.
Constructor Summary
Constructor | Description |
---|---|
PolicyContractInner() |
Creates an instance of Policy |
Method Summary
Modifier and Type | Method and Description |
---|---|
Policy |
format()
Get the format property: Format of the policy |
void |
validate()
Validates the instance. |
String |
value()
Get the value property: Contents of the Policy as defined by the format. |
Policy |
withFormat(PolicyContentFormat format)
Set the format property: Format of the policy |
Policy |
withValue(String value)
Set the value property: Contents of the Policy as defined by the format. |
Methods inherited from ProxyResource
Methods inherited from java.lang.Object
Constructor Details
PolicyContractInner
public PolicyContractInner()
Creates an instance of PolicyContractInner class.
Method Details
format
public PolicyContentFormat format()
Get the format property: Format of the policyContent.
Returns:
validate
public void validate()
Validates the instance.
value
public String value()
Get the value property: Contents of the Policy as defined by the format.
Returns:
withFormat
public PolicyContractInner withFormat(PolicyContentFormat format)
Set the format property: Format of the policyContent.
Parameters:
Returns:
withValue
public PolicyContractInner withValue(String value)
Set the value property: Contents of the Policy as defined by the format.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for