public class IamInstanceProfile
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes an IAM instance profile.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
arn
The Amazon Resource Name (ARN) of the instance profile.
|
private java.lang.String |
id
The ID of the instance profile.
|
Constructor and Description |
---|
IamInstanceProfile() |
Modifier and Type | Method and Description |
---|---|
IamInstanceProfile |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getArn()
The Amazon Resource Name (ARN) of the instance profile.
|
java.lang.String |
getId()
The ID of the instance profile.
|
int |
hashCode() |
void |
setArn(java.lang.String arn)
The Amazon Resource Name (ARN) of the instance profile.
|
void |
setId(java.lang.String id)
The ID of the instance profile.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
IamInstanceProfile |
withArn(java.lang.String arn)
The Amazon Resource Name (ARN) of the instance profile.
|
IamInstanceProfile |
withId(java.lang.String id)
The ID of the instance profile.
|
private java.lang.String arn
The Amazon Resource Name (ARN) of the instance profile.
private java.lang.String id
The ID of the instance profile.
public void setArn(java.lang.String arn)
The Amazon Resource Name (ARN) of the instance profile.
arn
- The Amazon Resource Name (ARN) of the instance profile.public java.lang.String getArn()
The Amazon Resource Name (ARN) of the instance profile.
public IamInstanceProfile withArn(java.lang.String arn)
The Amazon Resource Name (ARN) of the instance profile.
arn
- The Amazon Resource Name (ARN) of the instance profile.public void setId(java.lang.String id)
The ID of the instance profile.
id
- The ID of the instance profile.public java.lang.String getId()
The ID of the instance profile.
public IamInstanceProfile withId(java.lang.String id)
The ID of the instance profile.
id
- The ID of the instance profile.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public IamInstanceProfile clone()
clone
in class java.lang.Object