Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.identitymanagement.model
Class InstanceProfile

java.lang.Object
  extended by com.amazonaws.services.identitymanagement.model.InstanceProfile
All Implemented Interfaces:
Serializable

public class InstanceProfile
extends Object
implements Serializable

The InstanceProfile data type contains information about an instance profile.

This data type is used as a response element in the following actions:

See Also:
Serialized Form

Constructor Summary
InstanceProfile()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getArn()
          The Amazon Resource Name (ARN) specifying the instance profile.
 Date getCreateDate()
          The date when the instance profile was created.
 String getInstanceProfileId()
          The stable and unique string identifying the instance profile.
 String getInstanceProfileName()
          The name identifying the instance profile.
 String getPath()
          Path to the instance profile.
 List<Role> getRoles()
          The role associated with the instance profile.
 int hashCode()
           
 void setArn(String arn)
          The Amazon Resource Name (ARN) specifying the instance profile.
 void setCreateDate(Date createDate)
          The date when the instance profile was created.
 void setInstanceProfileId(String instanceProfileId)
          The stable and unique string identifying the instance profile.
 void setInstanceProfileName(String instanceProfileName)
          The name identifying the instance profile.
 void setPath(String path)
          Path to the instance profile.
 void setRoles(Collection<Role> roles)
          The role associated with the instance profile.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 InstanceProfile withArn(String arn)
          The Amazon Resource Name (ARN) specifying the instance profile.
 InstanceProfile withCreateDate(Date createDate)
          The date when the instance profile was created.
 InstanceProfile withInstanceProfileId(String instanceProfileId)
          The stable and unique string identifying the instance profile.
 InstanceProfile withInstanceProfileName(String instanceProfileName)
          The name identifying the instance profile.
 InstanceProfile withPath(String path)
          Path to the instance profile.
 InstanceProfile withRoles(Collection<Role> roles)
          The role associated with the instance profile.
 InstanceProfile withRoles(Role... roles)
          The role associated with the instance profile.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InstanceProfile

public InstanceProfile()
Method Detail

getPath

public String getPath()
Path to the instance profile. For more information about paths, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

Constraints:
Length: 1 - 512
Pattern: (/)|(/[!-]+/)

Returns:
Path to the instance profile. For more information about paths, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

setPath

public void setPath(String path)
Path to the instance profile. For more information about paths, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

Constraints:
Length: 1 - 512
Pattern: (/)|(/[!-]+/)

Parameters:
path - Path to the instance profile. For more information about paths, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

withPath

public InstanceProfile withPath(String path)
Path to the instance profile. For more information about paths, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

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

Constraints:
Length: 1 - 512
Pattern: (/)|(/[!-]+/)

Parameters:
path - Path to the instance profile. For more information about paths, see Identifiers for IAM Entities in Using AWS Identity and Access Management.
Returns:
A reference to this updated object so that method calls can be chained together.

getInstanceProfileName

public String getInstanceProfileName()
The name identifying the instance profile.

Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*

Returns:
The name identifying the instance profile.

setInstanceProfileName

public void setInstanceProfileName(String instanceProfileName)
The name identifying the instance profile.

Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*

Parameters:
instanceProfileName - The name identifying the instance profile.

withInstanceProfileName

public InstanceProfile withInstanceProfileName(String instanceProfileName)
The name identifying the instance profile.

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

Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*

Parameters:
instanceProfileName - The name identifying the instance profile.
Returns:
A reference to this updated object so that method calls can be chained together.

getInstanceProfileId

public String getInstanceProfileId()
The stable and unique string identifying the instance profile. For more information about IDs, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

Constraints:
Length: 16 - 32
Pattern: [\w]*

Returns:
The stable and unique string identifying the instance profile. For more information about IDs, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

setInstanceProfileId

public void setInstanceProfileId(String instanceProfileId)
The stable and unique string identifying the instance profile. For more information about IDs, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

Constraints:
Length: 16 - 32
Pattern: [\w]*

Parameters:
instanceProfileId - The stable and unique string identifying the instance profile. For more information about IDs, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

withInstanceProfileId

public InstanceProfile withInstanceProfileId(String instanceProfileId)
The stable and unique string identifying the instance profile. For more information about IDs, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

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

Constraints:
Length: 16 - 32
Pattern: [\w]*

Parameters:
instanceProfileId - The stable and unique string identifying the instance profile. For more information about IDs, see Identifiers for IAM Entities in Using AWS Identity and Access Management.
Returns:
A reference to this updated object so that method calls can be chained together.

getArn

public String getArn()
The Amazon Resource Name (ARN) specifying the instance profile. For more information about ARNs and how to use them in policies, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

Constraints:
Length: 20 - 2048

Returns:
The Amazon Resource Name (ARN) specifying the instance profile. For more information about ARNs and how to use them in policies, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

setArn

public void setArn(String arn)
The Amazon Resource Name (ARN) specifying the instance profile. For more information about ARNs and how to use them in policies, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

Constraints:
Length: 20 - 2048

Parameters:
arn - The Amazon Resource Name (ARN) specifying the instance profile. For more information about ARNs and how to use them in policies, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

withArn

public InstanceProfile withArn(String arn)
The Amazon Resource Name (ARN) specifying the instance profile. For more information about ARNs and how to use them in policies, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

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

Constraints:
Length: 20 - 2048

Parameters:
arn - The Amazon Resource Name (ARN) specifying the instance profile. For more information about ARNs and how to use them in policies, see Identifiers for IAM Entities in Using AWS Identity and Access Management.
Returns:
A reference to this updated object so that method calls can be chained together.

getCreateDate

public Date getCreateDate()
The date when the instance profile was created.

Returns:
The date when the instance profile was created.

setCreateDate

public void setCreateDate(Date createDate)
The date when the instance profile was created.

Parameters:
createDate - The date when the instance profile was created.

withCreateDate

public InstanceProfile withCreateDate(Date createDate)
The date when the instance profile was created.

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

Parameters:
createDate - The date when the instance profile was created.
Returns:
A reference to this updated object so that method calls can be chained together.

getRoles

public List<Role> getRoles()
The role associated with the instance profile.

Returns:
The role associated with the instance profile.

setRoles

public void setRoles(Collection<Role> roles)
The role associated with the instance profile.

Parameters:
roles - The role associated with the instance profile.

withRoles

public InstanceProfile withRoles(Role... roles)
The role associated with the instance profile.

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

Parameters:
roles - The role associated with the instance profile.
Returns:
A reference to this updated object so that method calls can be chained together.

withRoles

public InstanceProfile withRoles(Collection<Role> roles)
The role associated with the instance profile.

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

Parameters:
roles - The role associated with the instance profile.
Returns:
A reference to this updated 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:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


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