StandardAssignmentInner Class

public final class StandardAssignmentInner
extends ProxyResource

Security Assignment on a resource group over a given scope.

Constructor Summary

Constructor Description
StandardAssignmentInner()

Creates an instance of StandardAssignmentInner class.

Method Summary

Modifier and Type Method and Description
AssignedStandardItem assignedStandard()

Get the assignedStandard property: Standard item with key as applied to this standard assignment over the given scope.

StandardAssignmentPropertiesAttestationData attestationData()

Get the attestationData property: Additional data about assignment that has Attest effect.

String description()

Get the description property: Description of the standardAssignment.

String displayName()

Get the displayName property: Display name of the standardAssignment.

Effect effect()

Get the effect property: Expected effect of this assignment (Audit/Exempt/Attest).

List<String> excludedScopes()

Get the excludedScopes property: Excluded scopes, filter out the descendants of the scope (on management scopes).

StandardAssignmentPropertiesExemptionData exemptionData()

Get the exemptionData property: Additional data about assignment that has Exempt effect.

OffsetDateTime expiresOn()

Get the expiresOn property: Expiration date of this assignment as a full ISO date.

static StandardAssignmentInner fromJson(JsonReader jsonReader)

Reads an instance of StandardAssignmentInner from the JsonReader.

String id()

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

StandardAssignmentMetadata metadata()

Get the metadata property: The standard assignment metadata.

String name()

Get the name property: The name of the resource.

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.

StandardAssignmentInner withAssignedStandard(AssignedStandardItem assignedStandard)

Set the assignedStandard property: Standard item with key as applied to this standard assignment over the given scope.

StandardAssignmentInner withAttestationData(StandardAssignmentPropertiesAttestationData attestationData)

Set the attestationData property: Additional data about assignment that has Attest effect.

StandardAssignmentInner withDescription(String description)

Set the description property: Description of the standardAssignment.

StandardAssignmentInner withDisplayName(String displayName)

Set the displayName property: Display name of the standardAssignment.

StandardAssignmentInner withEffect(Effect effect)

Set the effect property: Expected effect of this assignment (Audit/Exempt/Attest).

StandardAssignmentInner withExcludedScopes(List<String> excludedScopes)

Set the excludedScopes property: Excluded scopes, filter out the descendants of the scope (on management scopes).

StandardAssignmentInner withExemptionData(StandardAssignmentPropertiesExemptionData exemptionData)

Set the exemptionData property: Additional data about assignment that has Exempt effect.

StandardAssignmentInner withExpiresOn(OffsetDateTime expiresOn)

Set the expiresOn property: Expiration date of this assignment as a full ISO date.

StandardAssignmentInner withMetadata(StandardAssignmentMetadata metadata)

Set the metadata property: The standard assignment metadata.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

StandardAssignmentInner

public StandardAssignmentInner()

Creates an instance of StandardAssignmentInner class.

Method Details

assignedStandard

public AssignedStandardItem assignedStandard()

Get the assignedStandard property: Standard item with key as applied to this standard assignment over the given scope.

Returns:

the assignedStandard value.

attestationData

public StandardAssignmentPropertiesAttestationData attestationData()

Get the attestationData property: Additional data about assignment that has Attest effect.

Returns:

the attestationData value.

description

public String description()

Get the description property: Description of the standardAssignment.

Returns:

the description value.

displayName

public String displayName()

Get the displayName property: Display name of the standardAssignment.

Returns:

the displayName value.

effect

public Effect effect()

Get the effect property: Expected effect of this assignment (Audit/Exempt/Attest).

Returns:

the effect value.

excludedScopes

public List<String> excludedScopes()

Get the excludedScopes property: Excluded scopes, filter out the descendants of the scope (on management scopes).

Returns:

the excludedScopes value.

exemptionData

public StandardAssignmentPropertiesExemptionData exemptionData()

Get the exemptionData property: Additional data about assignment that has Exempt effect.

Returns:

the exemptionData value.

expiresOn

public OffsetDateTime expiresOn()

Get the expiresOn property: Expiration date of this assignment as a full ISO date.

Returns:

the expiresOn value.

fromJson

public static StandardAssignmentInner fromJson(JsonReader jsonReader)

Reads an instance of StandardAssignmentInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

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

Overrides:

StandardAssignmentInner.id()

Returns:

the id value.

metadata

public StandardAssignmentMetadata metadata()

Get the metadata property: The standard assignment metadata.

Returns:

the metadata value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

StandardAssignmentInner.name()

Returns:

the name 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:

StandardAssignmentInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

StandardAssignmentInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withAssignedStandard

public StandardAssignmentInner withAssignedStandard(AssignedStandardItem assignedStandard)

Set the assignedStandard property: Standard item with key as applied to this standard assignment over the given scope.

Parameters:

assignedStandard - the assignedStandard value to set.

Returns:

the StandardAssignmentInner object itself.

withAttestationData

public StandardAssignmentInner withAttestationData(StandardAssignmentPropertiesAttestationData attestationData)

Set the attestationData property: Additional data about assignment that has Attest effect.

Parameters:

attestationData - the attestationData value to set.

Returns:

the StandardAssignmentInner object itself.

withDescription

public StandardAssignmentInner withDescription(String description)

Set the description property: Description of the standardAssignment.

Parameters:

description - the description value to set.

Returns:

the StandardAssignmentInner object itself.

withDisplayName

public StandardAssignmentInner withDisplayName(String displayName)

Set the displayName property: Display name of the standardAssignment.

Parameters:

displayName - the displayName value to set.

Returns:

the StandardAssignmentInner object itself.

withEffect

public StandardAssignmentInner withEffect(Effect effect)

Set the effect property: Expected effect of this assignment (Audit/Exempt/Attest).

Parameters:

effect - the effect value to set.

Returns:

the StandardAssignmentInner object itself.

withExcludedScopes

public StandardAssignmentInner withExcludedScopes(List<String> excludedScopes)

Set the excludedScopes property: Excluded scopes, filter out the descendants of the scope (on management scopes).

Parameters:

excludedScopes - the excludedScopes value to set.

Returns:

the StandardAssignmentInner object itself.

withExemptionData

public StandardAssignmentInner withExemptionData(StandardAssignmentPropertiesExemptionData exemptionData)

Set the exemptionData property: Additional data about assignment that has Exempt effect.

Parameters:

exemptionData - the exemptionData value to set.

Returns:

the StandardAssignmentInner object itself.

withExpiresOn

public StandardAssignmentInner withExpiresOn(OffsetDateTime expiresOn)

Set the expiresOn property: Expiration date of this assignment as a full ISO date.

Parameters:

expiresOn - the expiresOn value to set.

Returns:

the StandardAssignmentInner object itself.

withMetadata

public StandardAssignmentInner withMetadata(StandardAssignmentMetadata metadata)

Set the metadata property: The standard assignment metadata.

Parameters:

metadata - the metadata value to set.

Returns:

the StandardAssignmentInner object itself.

Applies to