@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LaunchTemplateIamInstanceProfileSpecification extends Object implements Serializable, Cloneable
Describes an IAM instance profile.
Constructor and Description |
---|
LaunchTemplateIamInstanceProfileSpecification() |
Modifier and Type | Method and Description |
---|---|
LaunchTemplateIamInstanceProfileSpecification |
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 |
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.
|
LaunchTemplateIamInstanceProfileSpecification |
withArn(String arn)
The Amazon Resource Name (ARN) of the instance profile.
|
LaunchTemplateIamInstanceProfileSpecification |
withName(String name)
The name of the instance profile.
|
public LaunchTemplateIamInstanceProfileSpecification()
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 LaunchTemplateIamInstanceProfileSpecification 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 LaunchTemplateIamInstanceProfileSpecification 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 LaunchTemplateIamInstanceProfileSpecification clone()