Class ActionResources
- java.lang.Object
-
- software.amazon.smithy.aws.iam.traits.ActionResources
-
- All Implemented Interfaces:
ToNode
,ToSmithyBuilder<ActionResources>
public final class ActionResources extends java.lang.Object implements ToNode, ToSmithyBuilder<ActionResources>
Contains information about the resources an IAM action can be authorized against.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ActionResources.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
static ActionResources
fromNode(Node value)
java.util.Map<java.lang.String,ActionResource>
getOptional()
Gets the resources that will be authorized against based on optional behavior of the IAM action.java.util.Map<java.lang.String,ActionResource>
getRequired()
Gets the resources that will always be authorized against for functionality of the IAM action.int
hashCode()
ActionResources.Builder
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.Node
toNode()
Converts a value to aNode
.
-
-
-
Method Detail
-
getRequired
public java.util.Map<java.lang.String,ActionResource> getRequired()
Gets the resources that will always be authorized against for functionality of the IAM action.- Returns:
- the required resources.
-
getOptional
public java.util.Map<java.lang.String,ActionResource> getOptional()
Gets the resources that will be authorized against based on optional behavior of the IAM action.- Returns:
- the optional resources.
-
fromNode
public static ActionResources fromNode(Node value)
-
toBuilder
public ActionResources.Builder toBuilder()
Description copied from interface:ToSmithyBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToSmithyBuilder<ActionResources>
- Returns:
- a builder for type T
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-