SelfServeExemptionSettings Class

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

Implements

public final class SelfServeExemptionSettings
implements JsonSerializable<SelfServeExemptionSettings>

The self-serve exemption settings for a policy assignment.

Constructor Summary

Constructor Description
SelfServeExemptionSettings()

Creates an instance of SelfServeExemptionSettings class.

Method Summary

Modifier and Type Method and Description
Boolean enabled()

Get the enabled property: Indicates whether self-serve exemption is enabled.

static SelfServeExemptionSettings fromJson(JsonReader jsonReader)

Reads an instance of SelfServeExemptionSettings from the JsonReader.

List<String> policyDefinitionReferenceIds()

Get the policyDefinitionReferenceIds property: The policy definition reference IDs for self-serve exemption.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SelfServeExemptionSettings withEnabled(Boolean enabled)

Set the enabled property: Indicates whether self-serve exemption is enabled.

SelfServeExemptionSettings withPolicyDefinitionReferenceIds(List<String> policyDefinitionReferenceIds)

Set the policyDefinitionReferenceIds property: The policy definition reference IDs for self-serve exemption.

Methods inherited from java.lang.Object

Constructor Details

SelfServeExemptionSettings

public SelfServeExemptionSettings()

Creates an instance of SelfServeExemptionSettings class.

Method Details

enabled

public Boolean enabled()

Get the enabled property: Indicates whether self-serve exemption is enabled.

Returns:

the enabled value.

fromJson

public static SelfServeExemptionSettings fromJson(JsonReader jsonReader)

Reads an instance of SelfServeExemptionSettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SelfServeExemptionSettings 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 SelfServeExemptionSettings.

policyDefinitionReferenceIds

public List<String> policyDefinitionReferenceIds()

Get the policyDefinitionReferenceIds property: The policy definition reference IDs for self-serve exemption.

Returns:

the policyDefinitionReferenceIds value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEnabled

public SelfServeExemptionSettings withEnabled(Boolean enabled)

Set the enabled property: Indicates whether self-serve exemption is enabled.

Parameters:

enabled - the enabled value to set.

Returns:

the SelfServeExemptionSettings object itself.

withPolicyDefinitionReferenceIds

public SelfServeExemptionSettings withPolicyDefinitionReferenceIds(List<String> policyDefinitionReferenceIds)

Set the policyDefinitionReferenceIds property: The policy definition reference IDs for self-serve exemption.

Parameters:

policyDefinitionReferenceIds - the policyDefinitionReferenceIds value to set.

Returns:

the SelfServeExemptionSettings object itself.

Applies to