@Generated(value="com.amazonaws:aws-java-sdk-code-generator") 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.
|
IamInstanceProfileSpecification |
withArn(String arn)
The Amazon Resource Name (ARN) of the instance profile.
|
IamInstanceProfileSpecification |
withName(String name)
The name of the instance profile.
|
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 IamInstanceProfileSpecification 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 IamInstanceProfileSpecification 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 IamInstanceProfileSpecification clone()