@Generated(value="software.amazon.awssdk:codegen") public final class InstanceProfile extends Object implements ToCopyableBuilder<InstanceProfile.Builder,InstanceProfile>
Contains information about an instance profile.
This data type is used as a response element in the following actions:
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) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
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.
|
static Class<? extends InstanceProfile.Builder> |
serializableBuilderClass() |
InstanceProfile.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public String path()
The path to the instance profile. For more information about paths, see IAM Identifiers in the Using IAM 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 Using IAM 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 Using IAM guide.
public Instant createDate()
The date when the instance profile was created.
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.
public InstanceProfile.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<InstanceProfile.Builder,InstanceProfile>
public static InstanceProfile.Builder builder()
public static Class<? extends InstanceProfile.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.