@Generated(value="software.amazon.awssdk:codegen") public final class InstanceProfile extends Object implements SdkPojo, Serializable, ToCopyableBuilder<InstanceProfile.Builder,InstanceProfile>
Contains information about an instance profile.
This data type is used as a response element in the following operations:
| Modifier and Type | Class and Description |
|---|---|
static interface |
InstanceProfile.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
arn()
The Amazon Resource Name (ARN) specifying the instance profile.
|
static InstanceProfile.Builder |
builder() |
Instant |
createDate()
The date when the instance profile was created.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasRoles()
Returns true if the Roles property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
String |
instanceProfileId()
The stable and unique string identifying the instance profile.
|
String |
instanceProfileName()
The name identifying the instance profile.
|
String |
path()
The path to the instance profile.
|
List<Role> |
roles()
The role associated with the instance profile.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends InstanceProfile.Builder> |
serializableBuilderClass() |
InstanceProfile.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String path()
The path to the instance profile. For more information about paths, see IAM Identifiers in the IAM User Guide.
public String instanceProfileName()
The name identifying the instance profile.
public String instanceProfileId()
The stable and unique string identifying the instance profile. For more information about IDs, see IAM Identifiers in the IAM User Guide.
public String arn()
The Amazon Resource Name (ARN) specifying the instance profile. For more information about ARNs and how to use them in policies, see IAM Identifiers in the IAM User Guide.
public Instant createDate()
The date when the instance profile was created.
public boolean hasRoles()
public List<Role> roles()
The role associated with the instance profile.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasRoles() to see if a value was sent in this field.
public InstanceProfile.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<InstanceProfile.Builder,InstanceProfile>public static InstanceProfile.Builder builder()
public static Class<? extends InstanceProfile.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.