Package com.amazonaws.services.ec2.model
Class IamInstanceProfileSpecification
- java.lang.Object
-
- com.amazonaws.services.ec2.model.IamInstanceProfileSpecification
-
- All Implemented Interfaces:
Serializable,Cloneable
public class IamInstanceProfileSpecification extends Object implements Serializable, Cloneable
Describes an IAM instance profile.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IamInstanceProfileSpecification()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IamInstanceProfileSpecificationclone()booleanequals(Object obj)StringgetArn()The Amazon Resource Name (ARN) of the instance profile.StringgetName()The name of the instance profile.inthashCode()voidsetArn(String arn)The Amazon Resource Name (ARN) of the instance profile.voidsetName(String name)The name of the instance profile.StringtoString()Returns a string representation of this object; useful for testing and debugging.IamInstanceProfileSpecificationwithArn(String arn)The Amazon Resource Name (ARN) of the instance profile.IamInstanceProfileSpecificationwithName(String name)The name of the instance profile.
-
-
-
Method Detail
-
setArn
public void setArn(String arn)
The Amazon Resource Name (ARN) of the instance profile.
- Parameters:
arn- The Amazon Resource Name (ARN) of the instance profile.
-
getArn
public String getArn()
The Amazon Resource Name (ARN) of the instance profile.
- Returns:
- The Amazon Resource Name (ARN) of the instance profile.
-
withArn
public IamInstanceProfileSpecification withArn(String arn)
The Amazon Resource Name (ARN) of the instance profile.
- Parameters:
arn- The Amazon Resource Name (ARN) of the instance profile.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setName
public void setName(String name)
The name of the instance profile.
- Parameters:
name- The name of the instance profile.
-
getName
public String getName()
The name of the instance profile.
- Returns:
- The name of the instance profile.
-
withName
public IamInstanceProfileSpecification withName(String name)
The name of the instance profile.
- Parameters:
name- The name of the instance profile.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public IamInstanceProfileSpecification clone()
-
-