com.amazonaws.services.ec2.model
Class IamInstanceProfile

java.lang.Object
  extended by com.amazonaws.services.ec2.model.IamInstanceProfile
All Implemented Interfaces:
java.io.Serializable

public class IamInstanceProfile
extends java.lang.Object
implements java.io.Serializable

Describes an IAM instance profile.

See Also:
Serialized Form

Constructor Summary
IamInstanceProfile()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IamInstanceProfile

public IamInstanceProfile()
Method Detail

getArn

public java.lang.String getArn()
The Amazon Resource Name (ARN) of the instance profile.

Returns:
The Amazon Resource Name (ARN) of the instance profile.

setArn

public void setArn(java.lang.String arn)
The Amazon Resource Name (ARN) of the instance profile.

Parameters:
arn - The Amazon Resource Name (ARN) of the instance profile.

withArn

public IamInstanceProfile withArn(java.lang.String arn)
The Amazon Resource Name (ARN) of the instance profile.

Returns a reference to this object so that method calls can be chained together.

Parameters:
arn - The Amazon Resource Name (ARN) of the instance profile.
Returns:
A reference to this updated object so that method calls can be chained together.

getId

public java.lang.String getId()
The ID of the instance profile.

Returns:
The ID of the instance profile.

setId

public void setId(java.lang.String id)
The ID of the instance profile.

Parameters:
id - The ID of the instance profile.

withId

public IamInstanceProfile withId(java.lang.String id)
The ID of the instance profile.

Returns a reference to this object so that method calls can be chained together.

Parameters:
id - The ID of the instance profile.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.