com.amazonaws.services.ec2.model
Class IamInstanceProfileSpecification

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

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

Describes an IAM instance profile.

See Also:
Serialized Form

Constructor Summary
IamInstanceProfileSpecification()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getArn()
          The Amazon Resource Name (ARN) of the instance profile.
 java.lang.String getName()
          The name of the instance profile.
 int hashCode()
           
 void setArn(java.lang.String arn)
          The Amazon Resource Name (ARN) of the instance profile.
 void setName(java.lang.String name)
          The name of the instance profile.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 IamInstanceProfileSpecification withArn(java.lang.String arn)
          The Amazon Resource Name (ARN) of the instance profile.
 IamInstanceProfileSpecification withName(java.lang.String name)
          The name of the instance profile.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IamInstanceProfileSpecification

public IamInstanceProfileSpecification()
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 IamInstanceProfileSpecification 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.

getName

public java.lang.String getName()
The name of the instance profile.

Returns:
The name of the instance profile.

setName

public void setName(java.lang.String name)
The name of the instance profile.

Parameters:
name - The name of the instance profile.

withName

public IamInstanceProfileSpecification withName(java.lang.String name)
The name of the instance profile.

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

Parameters:
name - The name 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.