AssignmentProperties Class
- java.
lang. Object - com.
azure. resourcemanager. security. fluent. models. AssignmentProperties
- com.
Implements
public final class AssignmentProperties
implements JsonSerializable<AssignmentProperties>
Describes the properties of a standardAssignment.
Constructor Summary
| Constructor | Description |
|---|---|
| AssignmentProperties() |
Creates an instance of Assignment |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Assignment |
additionalData()
Get the additional |
|
Assigned |
assignedComponent()
Get the assigned |
|
Assigned |
assignedStandard()
Get the assigned |
| String |
description()
Get the description property: description of the standard |
| String |
displayName()
Get the display |
| String |
effect()
Get the effect property: expected effect of this assignment (Disable/Exempt/etc). |
|
Offset |
expiresOn()
Get the expires |
|
static
Assignment |
fromJson(JsonReader jsonReader)
Reads an instance of Assignment |
| Object |
metadata()
Get the metadata property: The assignment metadata. |
| String |
scope()
Get the scope property: Scope to which the standard |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Assignment |
withAdditionalData(AssignmentPropertiesAdditionalData additionalData)
Set the additional |
|
Assignment |
withAssignedComponent(AssignedComponentItem assignedComponent)
Set the assigned |
|
Assignment |
withAssignedStandard(AssignedStandardItem assignedStandard)
Set the assigned |
|
Assignment |
withDescription(String description)
Set the description property: description of the standard |
|
Assignment |
withDisplayName(String displayName)
Set the display |
|
Assignment |
withEffect(String effect)
Set the effect property: expected effect of this assignment (Disable/Exempt/etc). |
|
Assignment |
withExpiresOn(OffsetDateTime expiresOn)
Set the expires |
|
Assignment |
withMetadata(Object metadata)
Set the metadata property: The assignment metadata. |
|
Assignment |
withScope(String scope)
Set the scope property: Scope to which the standard |
Methods inherited from java.lang.Object
Constructor Details
AssignmentProperties
public AssignmentProperties()
Creates an instance of AssignmentProperties class.
Method Details
additionalData
public AssignmentPropertiesAdditionalData additionalData()
Get the additionalData property: Additional data about the assignment.
Returns:
assignedComponent
public AssignedComponentItem assignedComponent()
Get the assignedComponent property: Component item with key as applied to this standard assignment over the given scope.
Returns:
assignedStandard
public AssignedStandardItem assignedStandard()
Get the assignedStandard property: Standard item with key as applied to this standard assignment over the given scope.
Returns:
description
public String description()
Get the description property: description of the standardAssignment.
Returns:
displayName
public String displayName()
Get the displayName property: display name of the standardAssignment.
Returns:
effect
public String effect()
Get the effect property: expected effect of this assignment (Disable/Exempt/etc).
Returns:
expiresOn
public OffsetDateTime expiresOn()
Get the expiresOn property: Expiration date of this assignment as a full ISO date.
Returns:
fromJson
public static AssignmentProperties fromJson(JsonReader jsonReader)
Reads an instance of AssignmentProperties from the JsonReader.
Parameters:
Returns:
Throws:
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:
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:
toJson
validate
public void validate()
Validates the instance.
withAdditionalData
public AssignmentProperties withAdditionalData(AssignmentPropertiesAdditionalData additionalData)
Set the additionalData property: Additional data about the assignment.
Parameters:
Returns:
withAssignedComponent
public AssignmentProperties withAssignedComponent(AssignedComponentItem assignedComponent)
Set the assignedComponent property: Component item with key as applied to this standard assignment over the given scope.
Parameters:
Returns:
withAssignedStandard
public AssignmentProperties withAssignedStandard(AssignedStandardItem assignedStandard)
Set the assignedStandard property: Standard item with key as applied to this standard assignment over the given scope.
Parameters:
Returns:
withDescription
public AssignmentProperties withDescription(String description)
Set the description property: description of the standardAssignment.
Parameters:
Returns:
withDisplayName
public AssignmentProperties withDisplayName(String displayName)
Set the displayName property: display name of the standardAssignment.
Parameters:
Returns:
withEffect
public AssignmentProperties withEffect(String effect)
Set the effect property: expected effect of this assignment (Disable/Exempt/etc).
Parameters:
Returns:
withExpiresOn
public AssignmentProperties withExpiresOn(OffsetDateTime expiresOn)
Set the expiresOn property: Expiration date of this assignment as a full ISO date.
Parameters:
Returns:
withMetadata
public AssignmentProperties 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:
Returns:
withScope
public AssignmentProperties 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:
Returns: