GovernanceAssignmentInner Class

public final class GovernanceAssignmentInner
extends ProxyResource

Governance assignment over a given scope.

Constructor Summary

Constructor Description
GovernanceAssignmentInner()

Creates an instance of GovernanceAssignmentInner class.

Method Summary

Modifier and Type Method and Description
GovernanceAssignmentAdditionalData additionalData()

Get the additionalData property: The additional data for the governance assignment - e.g.

static GovernanceAssignmentInner fromJson(JsonReader jsonReader)

Reads an instance of GovernanceAssignmentInner from the JsonReader.

GovernanceEmailNotification governanceEmailNotification()

Get the governanceEmailNotification property: The email notifications settings for the governance rule, states whether to disable notifications for mangers and owners.

String id()

Get the id property: Fully qualified resource Id for the resource.

Boolean isGracePeriod()

Get the isGracePeriod property: Defines whether there is a grace period on the governance assignment.

String name()

Get the name property: The name of the resource.

String owner()

Get the owner property: The Owner for the governance assignment - e.g.

OffsetDateTime remediationDueDate()

Get the remediationDueDate property: The remediation due-date - after this date Secure Score will be affected (in case of active grace-period).

RemediationEta remediationEta()

Get the remediationEta property: The ETA (estimated time of arrival) for remediation (optional), see example.

SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

GovernanceAssignmentInner withAdditionalData(GovernanceAssignmentAdditionalData additionalData)

Set the additionalData property: The additional data for the governance assignment - e.g.

GovernanceAssignmentInner withGovernanceEmailNotification(GovernanceEmailNotification governanceEmailNotification)

Set the governanceEmailNotification property: The email notifications settings for the governance rule, states whether to disable notifications for mangers and owners.

GovernanceAssignmentInner withIsGracePeriod(Boolean isGracePeriod)

Set the isGracePeriod property: Defines whether there is a grace period on the governance assignment.

GovernanceAssignmentInner withOwner(String owner)

Set the owner property: The Owner for the governance assignment - e.g.

GovernanceAssignmentInner withRemediationDueDate(OffsetDateTime remediationDueDate)

Set the remediationDueDate property: The remediation due-date - after this date Secure Score will be affected (in case of active grace-period).

GovernanceAssignmentInner withRemediationEta(RemediationEta remediationEta)

Set the remediationEta property: The ETA (estimated time of arrival) for remediation (optional), see example.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

GovernanceAssignmentInner

public GovernanceAssignmentInner()

Creates an instance of GovernanceAssignmentInner class.

Method Details

additionalData

public GovernanceAssignmentAdditionalData additionalData()

Get the additionalData property: The additional data for the governance assignment - e.g. links to ticket (optional), see example.

Returns:

the additionalData value.

fromJson

public static GovernanceAssignmentInner fromJson(JsonReader jsonReader)

Reads an instance of GovernanceAssignmentInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

governanceEmailNotification

public GovernanceEmailNotification governanceEmailNotification()

Get the governanceEmailNotification property: The email notifications settings for the governance rule, states whether to disable notifications for mangers and owners.

Returns:

the governanceEmailNotification value.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

GovernanceAssignmentInner.id()

Returns:

the id value.

isGracePeriod

public Boolean isGracePeriod()

Get the isGracePeriod property: Defines whether there is a grace period on the governance assignment.

Returns:

the isGracePeriod value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

GovernanceAssignmentInner.name()

Returns:

the name value.

owner

public String owner()

Get the owner property: The Owner for the governance assignment - e.g. user@contoso.com - see example.

Returns:

the owner value.

remediationDueDate

public OffsetDateTime remediationDueDate()

Get the remediationDueDate property: The remediation due-date - after this date Secure Score will be affected (in case of active grace-period).

Returns:

the remediationDueDate value.

remediationEta

public RemediationEta remediationEta()

Get the remediationEta property: The ETA (estimated time of arrival) for remediation (optional), see example.

Returns:

the remediationEta value.

systemData

public SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

GovernanceAssignmentInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

GovernanceAssignmentInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withAdditionalData

public GovernanceAssignmentInner withAdditionalData(GovernanceAssignmentAdditionalData additionalData)

Set the additionalData property: The additional data for the governance assignment - e.g. links to ticket (optional), see example.

Parameters:

additionalData - the additionalData value to set.

Returns:

the GovernanceAssignmentInner object itself.

withGovernanceEmailNotification

public GovernanceAssignmentInner withGovernanceEmailNotification(GovernanceEmailNotification governanceEmailNotification)

Set the governanceEmailNotification property: The email notifications settings for the governance rule, states whether to disable notifications for mangers and owners.

Parameters:

governanceEmailNotification - the governanceEmailNotification value to set.

Returns:

the GovernanceAssignmentInner object itself.

withIsGracePeriod

public GovernanceAssignmentInner withIsGracePeriod(Boolean isGracePeriod)

Set the isGracePeriod property: Defines whether there is a grace period on the governance assignment.

Parameters:

isGracePeriod - the isGracePeriod value to set.

Returns:

the GovernanceAssignmentInner object itself.

withOwner

public GovernanceAssignmentInner withOwner(String owner)

Set the owner property: The Owner for the governance assignment - e.g. user@contoso.com - see example.

Parameters:

owner - the owner value to set.

Returns:

the GovernanceAssignmentInner object itself.

withRemediationDueDate

public GovernanceAssignmentInner withRemediationDueDate(OffsetDateTime remediationDueDate)

Set the remediationDueDate property: The remediation due-date - after this date Secure Score will be affected (in case of active grace-period).

Parameters:

remediationDueDate - the remediationDueDate value to set.

Returns:

the GovernanceAssignmentInner object itself.

withRemediationEta

public GovernanceAssignmentInner withRemediationEta(RemediationEta remediationEta)

Set the remediationEta property: The ETA (estimated time of arrival) for remediation (optional), see example.

Parameters:

remediationEta - the remediationEta value to set.

Returns:

the GovernanceAssignmentInner object itself.

Applies to