public class IamInstanceProfileSpecification extends Object implements Serializable, Cloneable
Describes an IAM instance profile.
Constructor and Description |
---|
IamInstanceProfileSpecification() |
Modifier and Type | Method and Description |
---|---|
IamInstanceProfileSpecification |
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; useful for testing and
debugging.
|
IamInstanceProfileSpecification |
withArn(String arn)
The Amazon Resource Name (ARN) of the instance profile.
|
IamInstanceProfileSpecification |
withName(String name)
The name of the instance profile.
|
public String getArn()
public void setArn(String arn)
arn
- The Amazon Resource Name (ARN) of the instance profile.public IamInstanceProfileSpecification withArn(String arn)
Returns a reference to this object so that method calls can be chained together.
arn
- The Amazon Resource Name (ARN) of the instance profile.public String getName()
public void setName(String name)
name
- The name of the instance profile.public IamInstanceProfileSpecification withName(String name)
Returns a reference to this object so that method calls can be chained together.
name
- The name of the instance profile.public String toString()
toString
in class Object
Object.toString()
public IamInstanceProfileSpecification clone()
Copyright © 2015. All rights reserved.