PolicyExemptionInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. resources. fluent. models. PolicyExemptionInner
- com.
- com.
public final class PolicyExemptionInner
extends ProxyResource
The policy exemption.
Constructor Summary
Constructor | Description |
---|---|
PolicyExemptionInner() |
Creates an instance of Policy |
Method Summary
Modifier and Type | Method and Description |
---|---|
Assignment |
assignmentScopeValidation()
Get the assignment |
String |
description()
Get the description property: The description of the policy exemption. |
String |
displayName()
Get the display |
Exemption |
exemptionCategory()
Get the exemption |
Offset |
expiresOn()
Get the expires |
static
Policy |
fromJson(JsonReader jsonReader)
Reads an instance of Policy |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
Object |
metadata()
Get the metadata property: The policy exemption metadata. |
String |
name()
Get the name property: The name of the resource. |
String |
policyAssignmentId()
Get the policy |
List<String> |
policyDefinitionReferenceIds()
Get the policy |
List<Resource |
resourceSelectors()
Get the resource |
System |
systemData()
Get the system |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
Policy |
withAssignmentScopeValidation(AssignmentScopeValidation assignmentScopeValidation)
Set the assignment |
Policy |
withDescription(String description)
Set the description property: The description of the policy exemption. |
Policy |
withDisplayName(String displayName)
Set the display |
Policy |
withExemptionCategory(ExemptionCategory exemptionCategory)
Set the exemption |
Policy |
withExpiresOn(OffsetDateTime expiresOn)
Set the expires |
Policy |
withMetadata(Object metadata)
Set the metadata property: The policy exemption metadata. |
Policy |
withPolicyAssignmentId(String policyAssignmentId)
Set the policy |
Policy |
withPolicyDefinitionReferenceIds(List<String> policyDefinitionReferenceIds)
Set the policy |
Policy |
withResourceSelectors(List<ResourceSelector> resourceSelectors)
Set the resource |
Methods inherited from ProxyResource
Methods inherited from java.lang.Object
Constructor Details
PolicyExemptionInner
public PolicyExemptionInner()
Creates an instance of PolicyExemptionInner class.
Method Details
assignmentScopeValidation
public AssignmentScopeValidation assignmentScopeValidation()
Get the assignmentScopeValidation property: The option whether validate the exemption is at or under the assignment scope.
Returns:
description
public String description()
Get the description property: The description of the policy exemption.
Returns:
displayName
public String displayName()
Get the displayName property: The display name of the policy exemption.
Returns:
exemptionCategory
public ExemptionCategory exemptionCategory()
Get the exemptionCategory property: The policy exemption category. Possible values are Waiver and Mitigated.
Returns:
expiresOn
public OffsetDateTime expiresOn()
Get the expiresOn property: The expiration date and time (in UTC ISO 8601 format yyyy-MM-ddTHH:mm:ssZ) of the policy exemption.
Returns:
fromJson
public static PolicyExemptionInner fromJson(JsonReader jsonReader)
Reads an instance of PolicyExemptionInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
PolicyExemptionInner.id()Returns:
metadata
public Object metadata()
Get the metadata property: The policy exemption metadata. Metadata is an open ended object and is typically a collection of key value pairs.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
PolicyExemptionInner.name()Returns:
policyAssignmentId
public String policyAssignmentId()
Get the policyAssignmentId property: The ID of the policy assignment that is being exempted.
Returns:
policyDefinitionReferenceIds
public List
Get the policyDefinitionReferenceIds property: The policy definition reference ID list when the associated policy assignment is an assignment of a policy set definition.
Returns:
resourceSelectors
public List
Get the resourceSelectors property: The resource selector list to filter policies by resource properties.
Returns:
systemData
public SystemData systemData()
Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
PolicyExemptionInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
PolicyExemptionInner.type()Returns:
validate
public void validate()
Validates the instance.
withAssignmentScopeValidation
public PolicyExemptionInner withAssignmentScopeValidation(AssignmentScopeValidation assignmentScopeValidation)
Set the assignmentScopeValidation property: The option whether validate the exemption is at or under the assignment scope.
Parameters:
Returns:
withDescription
public PolicyExemptionInner withDescription(String description)
Set the description property: The description of the policy exemption.
Parameters:
Returns:
withDisplayName
public PolicyExemptionInner withDisplayName(String displayName)
Set the displayName property: The display name of the policy exemption.
Parameters:
Returns:
withExemptionCategory
public PolicyExemptionInner withExemptionCategory(ExemptionCategory exemptionCategory)
Set the exemptionCategory property: The policy exemption category. Possible values are Waiver and Mitigated.
Parameters:
Returns:
withExpiresOn
public PolicyExemptionInner withExpiresOn(OffsetDateTime expiresOn)
Set the expiresOn property: The expiration date and time (in UTC ISO 8601 format yyyy-MM-ddTHH:mm:ssZ) of the policy exemption.
Parameters:
Returns:
withMetadata
public PolicyExemptionInner withMetadata(Object metadata)
Set the metadata property: The policy exemption metadata. Metadata is an open ended object and is typically a collection of key value pairs.
Parameters:
Returns:
withPolicyAssignmentId
public PolicyExemptionInner withPolicyAssignmentId(String policyAssignmentId)
Set the policyAssignmentId property: The ID of the policy assignment that is being exempted.
Parameters:
Returns:
withPolicyDefinitionReferenceIds
public PolicyExemptionInner withPolicyDefinitionReferenceIds(List
Set the policyDefinitionReferenceIds property: The policy definition reference ID list when the associated policy assignment is an assignment of a policy set definition.
Parameters:
Returns:
withResourceSelectors
public PolicyExemptionInner withResourceSelectors(List
Set the resourceSelectors property: The resource selector list to filter policies by resource properties.
Parameters:
Returns:
Applies to
Azure SDK for Java