Share via


PolicyLogInfo Class

  • java.lang.Object
    • com.azure.resourcemanager.resources.models.PolicyLogInfo

Implements

public final class PolicyLogInfo
implements JsonSerializable<PolicyLogInfo>

The policy log info.

Constructor Summary

Constructor Description
PolicyLogInfo()

Creates an instance of PolicyLogInfo class.

Method Summary

Modifier and Type Method and Description
String ancestors()

Get the ancestors property: The management group ancestors.

String complianceReasonCode()

Get the complianceReasonCode property: The policy compliance reason code.

static PolicyLogInfo fromJson(JsonReader jsonReader)

Reads an instance of PolicyLogInfo from the JsonReader.

String policyAssignmentDisplayName()

Get the policyAssignmentDisplayName property: The policy assignment display name.

String policyAssignmentId()

Get the policyAssignmentId property: The policy assignment Id.

String policyAssignmentName()

Get the policyAssignmentName property: The policy assignment name.

String policyAssignmentScope()

Get the policyAssignmentScope property: The policy assignment scope.

String policyAssignmentVersion()

Get the policyAssignmentVersion property: The policy assignment version.

String policyDefinitionDisplayName()

Get the policyDefinitionDisplayName property: The policy definition display name.

String policyDefinitionEffect()

Get the policyDefinitionEffect property: The policy definition action.

List<String> policyDefinitionGroupNames()

Get the policyDefinitionGroupNames property: An array of policy definition group names.

String policyDefinitionId()

Get the policyDefinitionId property: The policy definition Id.

String policyDefinitionName()

Get the policyDefinitionName property: The policy definition name.

String policyDefinitionReferenceId()

Get the policyDefinitionReferenceId property: The policy definition instance Id inside a policy set.

String policyDefinitionVersion()

Get the policyDefinitionVersion property: The policy definition version.

List<String> policyExemptionIds()

Get the policyExemptionIds property: An array of policy exemption Ids.

String policySetDefinitionCategory()

Get the policySetDefinitionCategory property: The policy set definition category.

String policySetDefinitionDisplayName()

Get the policySetDefinitionDisplayName property: The policy set definition display name.

String policySetDefinitionId()

Get the policySetDefinitionId property: The policy set definition Id.

String policySetDefinitionName()

Get the policySetDefinitionName property: The policy set definition name.

String policySetDefinitionVersion()

Get the policySetDefinitionVersion property: The policy set definition version.

String resourceLocation()

Get the resourceLocation property: The resource location.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

PolicyLogInfo withAncestors(String ancestors)

Set the ancestors property: The management group ancestors.

PolicyLogInfo withComplianceReasonCode(String complianceReasonCode)

Set the complianceReasonCode property: The policy compliance reason code.

PolicyLogInfo withPolicyAssignmentDisplayName(String policyAssignmentDisplayName)

Set the policyAssignmentDisplayName property: The policy assignment display name.

PolicyLogInfo withPolicyAssignmentId(String policyAssignmentId)

Set the policyAssignmentId property: The policy assignment Id.

PolicyLogInfo withPolicyAssignmentName(String policyAssignmentName)

Set the policyAssignmentName property: The policy assignment name.

PolicyLogInfo withPolicyAssignmentScope(String policyAssignmentScope)

Set the policyAssignmentScope property: The policy assignment scope.

PolicyLogInfo withPolicyAssignmentVersion(String policyAssignmentVersion)

Set the policyAssignmentVersion property: The policy assignment version.

PolicyLogInfo withPolicyDefinitionDisplayName(String policyDefinitionDisplayName)

Set the policyDefinitionDisplayName property: The policy definition display name.

PolicyLogInfo withPolicyDefinitionEffect(String policyDefinitionEffect)

Set the policyDefinitionEffect property: The policy definition action.

PolicyLogInfo withPolicyDefinitionGroupNames(List<String> policyDefinitionGroupNames)

Set the policyDefinitionGroupNames property: An array of policy definition group names.

PolicyLogInfo withPolicyDefinitionId(String policyDefinitionId)

Set the policyDefinitionId property: The policy definition Id.

PolicyLogInfo withPolicyDefinitionName(String policyDefinitionName)

Set the policyDefinitionName property: The policy definition name.

PolicyLogInfo withPolicyDefinitionReferenceId(String policyDefinitionReferenceId)

Set the policyDefinitionReferenceId property: The policy definition instance Id inside a policy set.

PolicyLogInfo withPolicyDefinitionVersion(String policyDefinitionVersion)

Set the policyDefinitionVersion property: The policy definition version.

PolicyLogInfo withPolicyExemptionIds(List<String> policyExemptionIds)

Set the policyExemptionIds property: An array of policy exemption Ids.

PolicyLogInfo withPolicySetDefinitionCategory(String policySetDefinitionCategory)

Set the policySetDefinitionCategory property: The policy set definition category.

PolicyLogInfo withPolicySetDefinitionDisplayName(String policySetDefinitionDisplayName)

Set the policySetDefinitionDisplayName property: The policy set definition display name.

PolicyLogInfo withPolicySetDefinitionId(String policySetDefinitionId)

Set the policySetDefinitionId property: The policy set definition Id.

PolicyLogInfo withPolicySetDefinitionName(String policySetDefinitionName)

Set the policySetDefinitionName property: The policy set definition name.

PolicyLogInfo withPolicySetDefinitionVersion(String policySetDefinitionVersion)

Set the policySetDefinitionVersion property: The policy set definition version.

PolicyLogInfo withResourceLocation(String resourceLocation)

Set the resourceLocation property: The resource location.

Methods inherited from java.lang.Object

Constructor Details

PolicyLogInfo

public PolicyLogInfo()

Creates an instance of PolicyLogInfo class.

Method Details

ancestors

public String ancestors()

Get the ancestors property: The management group ancestors.

Returns:

the ancestors value.

complianceReasonCode

public String complianceReasonCode()

Get the complianceReasonCode property: The policy compliance reason code.

Returns:

the complianceReasonCode value.

fromJson

public static PolicyLogInfo fromJson(JsonReader jsonReader)

Reads an instance of PolicyLogInfo from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of PolicyLogInfo if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the PolicyLogInfo.

policyAssignmentDisplayName

public String policyAssignmentDisplayName()

Get the policyAssignmentDisplayName property: The policy assignment display name.

Returns:

the policyAssignmentDisplayName value.

policyAssignmentId

public String policyAssignmentId()

Get the policyAssignmentId property: The policy assignment Id.

Returns:

the policyAssignmentId value.

policyAssignmentName

public String policyAssignmentName()

Get the policyAssignmentName property: The policy assignment name.

Returns:

the policyAssignmentName value.

policyAssignmentScope

public String policyAssignmentScope()

Get the policyAssignmentScope property: The policy assignment scope.

Returns:

the policyAssignmentScope value.

policyAssignmentVersion

public String policyAssignmentVersion()

Get the policyAssignmentVersion property: The policy assignment version.

Returns:

the policyAssignmentVersion value.

policyDefinitionDisplayName

public String policyDefinitionDisplayName()

Get the policyDefinitionDisplayName property: The policy definition display name.

Returns:

the policyDefinitionDisplayName value.

policyDefinitionEffect

public String policyDefinitionEffect()

Get the policyDefinitionEffect property: The policy definition action.

Returns:

the policyDefinitionEffect value.

policyDefinitionGroupNames

public List<String> policyDefinitionGroupNames()

Get the policyDefinitionGroupNames property: An array of policy definition group names.

Returns:

the policyDefinitionGroupNames value.

policyDefinitionId

public String policyDefinitionId()

Get the policyDefinitionId property: The policy definition Id.

Returns:

the policyDefinitionId value.

policyDefinitionName

public String policyDefinitionName()

Get the policyDefinitionName property: The policy definition name.

Returns:

the policyDefinitionName value.

policyDefinitionReferenceId

public String policyDefinitionReferenceId()

Get the policyDefinitionReferenceId property: The policy definition instance Id inside a policy set.

Returns:

the policyDefinitionReferenceId value.

policyDefinitionVersion

public String policyDefinitionVersion()

Get the policyDefinitionVersion property: The policy definition version.

Returns:

the policyDefinitionVersion value.

policyExemptionIds

public List<String> policyExemptionIds()

Get the policyExemptionIds property: An array of policy exemption Ids.

Returns:

the policyExemptionIds value.

policySetDefinitionCategory

public String policySetDefinitionCategory()

Get the policySetDefinitionCategory property: The policy set definition category.

Returns:

the policySetDefinitionCategory value.

policySetDefinitionDisplayName

public String policySetDefinitionDisplayName()

Get the policySetDefinitionDisplayName property: The policy set definition display name.

Returns:

the policySetDefinitionDisplayName value.

policySetDefinitionId

public String policySetDefinitionId()

Get the policySetDefinitionId property: The policy set definition Id.

Returns:

the policySetDefinitionId value.

policySetDefinitionName

public String policySetDefinitionName()

Get the policySetDefinitionName property: The policy set definition name.

Returns:

the policySetDefinitionName value.

policySetDefinitionVersion

public String policySetDefinitionVersion()

Get the policySetDefinitionVersion property: The policy set definition version.

Returns:

the policySetDefinitionVersion value.

resourceLocation

public String resourceLocation()

Get the resourceLocation property: The resource location.

Returns:

the resourceLocation value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAncestors

public PolicyLogInfo withAncestors(String ancestors)

Set the ancestors property: The management group ancestors.

Parameters:

ancestors - the ancestors value to set.

Returns:

the PolicyLogInfo object itself.

withComplianceReasonCode

public PolicyLogInfo withComplianceReasonCode(String complianceReasonCode)

Set the complianceReasonCode property: The policy compliance reason code.

Parameters:

complianceReasonCode - the complianceReasonCode value to set.

Returns:

the PolicyLogInfo object itself.

withPolicyAssignmentDisplayName

public PolicyLogInfo withPolicyAssignmentDisplayName(String policyAssignmentDisplayName)

Set the policyAssignmentDisplayName property: The policy assignment display name.

Parameters:

policyAssignmentDisplayName - the policyAssignmentDisplayName value to set.

Returns:

the PolicyLogInfo object itself.

withPolicyAssignmentId

public PolicyLogInfo withPolicyAssignmentId(String policyAssignmentId)

Set the policyAssignmentId property: The policy assignment Id.

Parameters:

policyAssignmentId - the policyAssignmentId value to set.

Returns:

the PolicyLogInfo object itself.

withPolicyAssignmentName

public PolicyLogInfo withPolicyAssignmentName(String policyAssignmentName)

Set the policyAssignmentName property: The policy assignment name.

Parameters:

policyAssignmentName - the policyAssignmentName value to set.

Returns:

the PolicyLogInfo object itself.

withPolicyAssignmentScope

public PolicyLogInfo withPolicyAssignmentScope(String policyAssignmentScope)

Set the policyAssignmentScope property: The policy assignment scope.

Parameters:

policyAssignmentScope - the policyAssignmentScope value to set.

Returns:

the PolicyLogInfo object itself.

withPolicyAssignmentVersion

public PolicyLogInfo withPolicyAssignmentVersion(String policyAssignmentVersion)

Set the policyAssignmentVersion property: The policy assignment version.

Parameters:

policyAssignmentVersion - the policyAssignmentVersion value to set.

Returns:

the PolicyLogInfo object itself.

withPolicyDefinitionDisplayName

public PolicyLogInfo withPolicyDefinitionDisplayName(String policyDefinitionDisplayName)

Set the policyDefinitionDisplayName property: The policy definition display name.

Parameters:

policyDefinitionDisplayName - the policyDefinitionDisplayName value to set.

Returns:

the PolicyLogInfo object itself.

withPolicyDefinitionEffect

public PolicyLogInfo withPolicyDefinitionEffect(String policyDefinitionEffect)

Set the policyDefinitionEffect property: The policy definition action.

Parameters:

policyDefinitionEffect - the policyDefinitionEffect value to set.

Returns:

the PolicyLogInfo object itself.

withPolicyDefinitionGroupNames

public PolicyLogInfo withPolicyDefinitionGroupNames(List<String> policyDefinitionGroupNames)

Set the policyDefinitionGroupNames property: An array of policy definition group names.

Parameters:

policyDefinitionGroupNames - the policyDefinitionGroupNames value to set.

Returns:

the PolicyLogInfo object itself.

withPolicyDefinitionId

public PolicyLogInfo withPolicyDefinitionId(String policyDefinitionId)

Set the policyDefinitionId property: The policy definition Id.

Parameters:

policyDefinitionId - the policyDefinitionId value to set.

Returns:

the PolicyLogInfo object itself.

withPolicyDefinitionName

public PolicyLogInfo withPolicyDefinitionName(String policyDefinitionName)

Set the policyDefinitionName property: The policy definition name.

Parameters:

policyDefinitionName - the policyDefinitionName value to set.

Returns:

the PolicyLogInfo object itself.

withPolicyDefinitionReferenceId

public PolicyLogInfo withPolicyDefinitionReferenceId(String policyDefinitionReferenceId)

Set the policyDefinitionReferenceId property: The policy definition instance Id inside a policy set.

Parameters:

policyDefinitionReferenceId - the policyDefinitionReferenceId value to set.

Returns:

the PolicyLogInfo object itself.

withPolicyDefinitionVersion

public PolicyLogInfo withPolicyDefinitionVersion(String policyDefinitionVersion)

Set the policyDefinitionVersion property: The policy definition version.

Parameters:

policyDefinitionVersion - the policyDefinitionVersion value to set.

Returns:

the PolicyLogInfo object itself.

withPolicyExemptionIds

public PolicyLogInfo withPolicyExemptionIds(List<String> policyExemptionIds)

Set the policyExemptionIds property: An array of policy exemption Ids.

Parameters:

policyExemptionIds - the policyExemptionIds value to set.

Returns:

the PolicyLogInfo object itself.

withPolicySetDefinitionCategory

public PolicyLogInfo withPolicySetDefinitionCategory(String policySetDefinitionCategory)

Set the policySetDefinitionCategory property: The policy set definition category.

Parameters:

policySetDefinitionCategory - the policySetDefinitionCategory value to set.

Returns:

the PolicyLogInfo object itself.

withPolicySetDefinitionDisplayName

public PolicyLogInfo withPolicySetDefinitionDisplayName(String policySetDefinitionDisplayName)

Set the policySetDefinitionDisplayName property: The policy set definition display name.

Parameters:

policySetDefinitionDisplayName - the policySetDefinitionDisplayName value to set.

Returns:

the PolicyLogInfo object itself.

withPolicySetDefinitionId

public PolicyLogInfo withPolicySetDefinitionId(String policySetDefinitionId)

Set the policySetDefinitionId property: The policy set definition Id.

Parameters:

policySetDefinitionId - the policySetDefinitionId value to set.

Returns:

the PolicyLogInfo object itself.

withPolicySetDefinitionName

public PolicyLogInfo withPolicySetDefinitionName(String policySetDefinitionName)

Set the policySetDefinitionName property: The policy set definition name.

Parameters:

policySetDefinitionName - the policySetDefinitionName value to set.

Returns:

the PolicyLogInfo object itself.

withPolicySetDefinitionVersion

public PolicyLogInfo withPolicySetDefinitionVersion(String policySetDefinitionVersion)

Set the policySetDefinitionVersion property: The policy set definition version.

Parameters:

policySetDefinitionVersion - the policySetDefinitionVersion value to set.

Returns:

the PolicyLogInfo object itself.

withResourceLocation

public PolicyLogInfo withResourceLocation(String resourceLocation)

Set the resourceLocation property: The resource location.

Parameters:

resourceLocation - the resourceLocation value to set.

Returns:

the PolicyLogInfo object itself.

Applies to