AssignmentInner Class

public final class AssignmentInner
extends ProxyResource

Security Assignment on a resource group over a given scope.

Constructor Summary

Constructor Description
AssignmentInner()

Creates an instance of AssignmentInner class.

Method Summary

Modifier and Type Method and Description
AssignmentPropertiesAdditionalData additionalData()

Get the additionalData property: Additional data about the assignment.

AssignedComponentItem assignedComponent()

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

AssignedStandardItem assignedStandard()

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

String description()

Get the description property: description of the standardAssignment.

String displayName()

Get the displayName property: display name of the standardAssignment.

String effect()

Get the effect property: expected effect of this assignment (Disable/Exempt/etc).

String etag()

Get the etag property: Entity tag is used for comparing two or more entities from the same requested resource.

OffsetDateTime expiresOn()

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

static AssignmentInner fromJson(JsonReader jsonReader)

Reads an instance of AssignmentInner from the JsonReader.

String id()

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

String kind()

Get the kind property: Kind of the resource.

String location()

Get the location property: The geo-location where the resource lives.

Object metadata()

Get the metadata property: The assignment metadata.

String name()

Get the name property: The name of the resource.

String scope()

Get the scope property: Scope to which the standardAssignment applies - can be a subscription path or a resource group under that subscription.

SystemData systemData()

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

Map<String,String> tags()

Get the tags property: Resource tags.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

AssignmentInner withAdditionalData(AssignmentPropertiesAdditionalData additionalData)

Set the additionalData property: Additional data about the assignment.

AssignmentInner withAssignedComponent(AssignedComponentItem assignedComponent)

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

AssignmentInner withAssignedStandard(AssignedStandardItem assignedStandard)

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

AssignmentInner withDescription(String description)

Set the description property: description of the standardAssignment.

AssignmentInner withDisplayName(String displayName)

Set the displayName property: display name of the standardAssignment.

AssignmentInner withEffect(String effect)

Set the effect property: expected effect of this assignment (Disable/Exempt/etc).

AssignmentInner withEtag(String etag)

Set the etag property: Entity tag is used for comparing two or more entities from the same requested resource.

AssignmentInner withExpiresOn(OffsetDateTime expiresOn)

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

AssignmentInner withKind(String kind)

Set the kind property: Kind of the resource.

AssignmentInner withLocation(String location)

Set the location property: The geo-location where the resource lives.

AssignmentInner withMetadata(Object metadata)

Set the metadata property: The assignment metadata.

AssignmentInner withScope(String scope)

Set the scope property: Scope to which the standardAssignment applies - can be a subscription path or a resource group under that subscription.

AssignmentInner withTags(Map<String,String> tags)

Set the tags property: Resource tags.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

AssignmentInner

public AssignmentInner()

Creates an instance of AssignmentInner class.

Method Details

additionalData

public AssignmentPropertiesAdditionalData additionalData()

Get the additionalData property: Additional data about the assignment.

Returns:

the additionalData value.

assignedComponent

public AssignedComponentItem assignedComponent()

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

Returns:

the assignedComponent value.

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.

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 String effect()

Get the effect property: expected effect of this assignment (Disable/Exempt/etc).

Returns:

the effect value.

etag

public String etag()

Get the etag property: Entity tag is used for comparing two or more entities from the same requested resource.

Returns:

the etag 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 AssignmentInner fromJson(JsonReader jsonReader)

Reads an instance of AssignmentInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AssignmentInner 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:

AssignmentInner.id()

Returns:

the id value.

kind

public String kind()

Get the kind property: Kind of the resource.

Returns:

the kind value.

location

public String location()

Get the location property: The geo-location where the resource lives.

Returns:

the location value.

metadata

public Object metadata()

Get the metadata property: The assignment metadata. Metadata is an open ended object and is typically a collection of key value pairs.

Returns:

the metadata value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

AssignmentInner.name()

Returns:

the name value.

scope

public String scope()

Get the scope property: Scope to which the standardAssignment applies - can be a subscription path or a resource group under that subscription.

Returns:

the scope value.

systemData

public SystemData systemData()

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

Returns:

the systemData value.

tags

public Map<String,String> tags()

Get the tags property: Resource tags.

Returns:

the tags value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

AssignmentInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

AssignmentInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withAdditionalData

public AssignmentInner withAdditionalData(AssignmentPropertiesAdditionalData additionalData)

Set the additionalData property: Additional data about the assignment.

Parameters:

additionalData - the additionalData value to set.

Returns:

the AssignmentInner object itself.

withAssignedComponent

public AssignmentInner withAssignedComponent(AssignedComponentItem assignedComponent)

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

Parameters:

assignedComponent - the assignedComponent value to set.

Returns:

the AssignmentInner object itself.

withAssignedStandard

public AssignmentInner 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 AssignmentInner object itself.

withDescription

public AssignmentInner withDescription(String description)

Set the description property: description of the standardAssignment.

Parameters:

description - the description value to set.

Returns:

the AssignmentInner object itself.

withDisplayName

public AssignmentInner withDisplayName(String displayName)

Set the displayName property: display name of the standardAssignment.

Parameters:

displayName - the displayName value to set.

Returns:

the AssignmentInner object itself.

withEffect

public AssignmentInner withEffect(String effect)

Set the effect property: expected effect of this assignment (Disable/Exempt/etc).

Parameters:

effect - the effect value to set.

Returns:

the AssignmentInner object itself.

withEtag

public AssignmentInner withEtag(String etag)

Set the etag property: Entity tag is used for comparing two or more entities from the same requested resource.

Parameters:

etag - the etag value to set.

Returns:

the AssignmentInner object itself.

withExpiresOn

public AssignmentInner 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 AssignmentInner object itself.

withKind

public AssignmentInner withKind(String kind)

Set the kind property: Kind of the resource.

Parameters:

kind - the kind value to set.

Returns:

the AssignmentInner object itself.

withLocation

public AssignmentInner withLocation(String location)

Set the location property: The geo-location where the resource lives.

Parameters:

location - the location value to set.

Returns:

the AssignmentInner object itself.

withMetadata

public AssignmentInner withMetadata(Object metadata)

Set the metadata property: The assignment metadata. Metadata is an open ended object and is typically a collection of key value pairs.

Parameters:

metadata - the metadata value to set.

Returns:

the AssignmentInner object itself.

withScope

public AssignmentInner withScope(String scope)

Set the scope property: Scope to which the standardAssignment applies - can be a subscription path or a resource group under that subscription.

Parameters:

scope - the scope value to set.

Returns:

the AssignmentInner object itself.

withTags

public AssignmentInner withTags(Map<String,String> tags)

Set the tags property: Resource tags.

Parameters:

tags - the tags value to set.

Returns:

the AssignmentInner object itself.

Applies to