GovernanceRuleEmailNotification Class

  • java.lang.Object
    • com.azure.resourcemanager.security.models.GovernanceRuleEmailNotification

Implements

public final class GovernanceRuleEmailNotification
implements JsonSerializable<GovernanceRuleEmailNotification>

The governance email weekly notification configuration.

Constructor Summary

Constructor Description
GovernanceRuleEmailNotification()

Creates an instance of GovernanceRuleEmailNotification class.

Method Summary

Modifier and Type Method and Description
Boolean disableManagerEmailNotification()

Get the disableManagerEmailNotification property: Defines whether manager email notifications are disabled.

Boolean disableOwnerEmailNotification()

Get the disableOwnerEmailNotification property: Defines whether owner email notifications are disabled.

static GovernanceRuleEmailNotification fromJson(JsonReader jsonReader)

Reads an instance of GovernanceRuleEmailNotification from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

GovernanceRuleEmailNotification withDisableManagerEmailNotification(Boolean disableManagerEmailNotification)

Set the disableManagerEmailNotification property: Defines whether manager email notifications are disabled.

GovernanceRuleEmailNotification withDisableOwnerEmailNotification(Boolean disableOwnerEmailNotification)

Set the disableOwnerEmailNotification property: Defines whether owner email notifications are disabled.

Methods inherited from java.lang.Object

Constructor Details

GovernanceRuleEmailNotification

public GovernanceRuleEmailNotification()

Creates an instance of GovernanceRuleEmailNotification class.

Method Details

disableManagerEmailNotification

public Boolean disableManagerEmailNotification()

Get the disableManagerEmailNotification property: Defines whether manager email notifications are disabled.

Returns:

the disableManagerEmailNotification value.

disableOwnerEmailNotification

public Boolean disableOwnerEmailNotification()

Get the disableOwnerEmailNotification property: Defines whether owner email notifications are disabled.

Returns:

the disableOwnerEmailNotification value.

fromJson

public static GovernanceRuleEmailNotification fromJson(JsonReader jsonReader)

Reads an instance of GovernanceRuleEmailNotification from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDisableManagerEmailNotification

public GovernanceRuleEmailNotification withDisableManagerEmailNotification(Boolean disableManagerEmailNotification)

Set the disableManagerEmailNotification property: Defines whether manager email notifications are disabled.

Parameters:

disableManagerEmailNotification - the disableManagerEmailNotification value to set.

Returns:

the GovernanceRuleEmailNotification object itself.

withDisableOwnerEmailNotification

public GovernanceRuleEmailNotification withDisableOwnerEmailNotification(Boolean disableOwnerEmailNotification)

Set the disableOwnerEmailNotification property: Defines whether owner email notifications are disabled.

Parameters:

disableOwnerEmailNotification - the disableOwnerEmailNotification value to set.

Returns:

the GovernanceRuleEmailNotification object itself.

Applies to