@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsEc2LaunchTemplateDataIamInstanceProfileDetails extends Object implements Serializable, Cloneable, StructuredPojo
Provides details for an Identity and Access Management (IAM) instance profile, which is a container for an IAM role for your instance.
Constructor and Description |
---|
AwsEc2LaunchTemplateDataIamInstanceProfileDetails() |
Modifier and Type | Method and Description |
---|---|
AwsEc2LaunchTemplateDataIamInstanceProfileDetails |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The Amazon Resource Name (ARN) of the instance profile.
|
String |
getName()
The name of the instance profile.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
The Amazon Resource Name (ARN) of the instance profile.
|
void |
setName(String name)
The name of the instance profile.
|
String |
toString()
Returns a string representation of this object.
|
AwsEc2LaunchTemplateDataIamInstanceProfileDetails |
withArn(String arn)
The Amazon Resource Name (ARN) of the instance profile.
|
AwsEc2LaunchTemplateDataIamInstanceProfileDetails |
withName(String name)
The name of the instance profile.
|
public AwsEc2LaunchTemplateDataIamInstanceProfileDetails()
public void setArn(String arn)
The Amazon Resource Name (ARN) of the instance profile.
arn
- The Amazon Resource Name (ARN) of the instance profile.public String getArn()
The Amazon Resource Name (ARN) of the instance profile.
public AwsEc2LaunchTemplateDataIamInstanceProfileDetails withArn(String arn)
The Amazon Resource Name (ARN) of the instance profile.
arn
- The Amazon Resource Name (ARN) of the instance profile.public void setName(String name)
The name of the instance profile.
name
- The name of the instance profile.public String getName()
The name of the instance profile.
public AwsEc2LaunchTemplateDataIamInstanceProfileDetails withName(String name)
The name of the instance profile.
name
- The name of the instance profile.public String toString()
toString
in class Object
Object.toString()
public AwsEc2LaunchTemplateDataIamInstanceProfileDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.