Class InstanceProfile

java.lang.Object
com.amazonaws.services.identitymanagement.model.InstanceProfile
All Implemented Interfaces:
Serializable, Cloneable

public class InstanceProfile extends Object implements Serializable, Cloneable

Contains information about an instance profile.

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

See Also:
  • Constructor Details

    • InstanceProfile

      public InstanceProfile()
  • Method Details

    • setPath

      public void setPath(String path)

      The path to the instance profile. For more information about paths, see IAM Identifiers in the Using IAM guide.

      Parameters:
      path - The path to the instance profile. For more information about paths, see IAM Identifiers in the Using IAM guide.
    • getPath

      public String getPath()

      The path to the instance profile. For more information about paths, see IAM Identifiers in the Using IAM guide.

      Returns:
      The path to the instance profile. For more information about paths, see IAM Identifiers in the Using IAM guide.
    • withPath

      public InstanceProfile withPath(String path)

      The path to the instance profile. For more information about paths, see IAM Identifiers in the Using IAM guide.

      Parameters:
      path - The path to the instance profile. For more information about paths, see IAM Identifiers in the Using IAM guide.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setInstanceProfileName

      public void setInstanceProfileName(String instanceProfileName)

      The name identifying the instance profile.

      Parameters:
      instanceProfileName - The name identifying the instance profile.
    • getInstanceProfileName

      public String getInstanceProfileName()

      The name identifying the instance profile.

      Returns:
      The name identifying the instance profile.
    • withInstanceProfileName

      public InstanceProfile withInstanceProfileName(String instanceProfileName)

      The name identifying the instance profile.

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

      public void setInstanceProfileId(String instanceProfileId)

      The stable and unique string identifying the instance profile. For more information about IDs, see IAM Identifiers in the Using IAM guide.

      Parameters:
      instanceProfileId - The stable and unique string identifying the instance profile. For more information about IDs, see IAM Identifiers in the Using IAM guide.
    • getInstanceProfileId

      public String getInstanceProfileId()

      The stable and unique string identifying the instance profile. For more information about IDs, see IAM Identifiers in the Using IAM guide.

      Returns:
      The stable and unique string identifying the instance profile. For more information about IDs, see IAM Identifiers in the Using IAM guide.
    • withInstanceProfileId

      public InstanceProfile withInstanceProfileId(String instanceProfileId)

      The stable and unique string identifying the instance profile. For more information about IDs, see IAM Identifiers in the Using IAM guide.

      Parameters:
      instanceProfileId - The stable and unique string identifying the instance profile. For more information about IDs, see IAM Identifiers in the Using IAM guide.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • 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 IAM Identifiers in the Using IAM guide.

      Parameters:
      arn - The Amazon Resource Name (ARN) specifying the instance profile. For more information about ARNs and how to use them in policies, see IAM Identifiers in the Using IAM guide.
    • 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 IAM Identifiers in the Using IAM guide.

      Returns:
      The Amazon Resource Name (ARN) specifying the instance profile. For more information about ARNs and how to use them in policies, see IAM Identifiers in the Using IAM guide.
    • 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 IAM Identifiers in the Using IAM guide.

      Parameters:
      arn - The Amazon Resource Name (ARN) specifying the instance profile. For more information about ARNs and how to use them in policies, see IAM Identifiers in the Using IAM guide.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setCreateDate

      public void setCreateDate(Date createDate)

      The date when the instance profile was created.

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

      public Date getCreateDate()

      The date when the instance profile was created.

      Returns:
      The date when the instance profile was created.
    • withCreateDate

      public InstanceProfile withCreateDate(Date createDate)

      The date when the instance profile was created.

      Parameters:
      createDate - The date when the instance profile was created.
      Returns:
      Returns a reference to this 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.

      NOTE: This method appends the values to the existing list (if any). Use setRoles(java.util.Collection) or withRoles(java.util.Collection) if you want to override the existing values.

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

      public InstanceProfile withRoles(Collection<Role> roles)

      The role associated with the instance profile.

      Parameters:
      roles - The role associated with 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:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public InstanceProfile clone()
      Overrides:
      clone in class Object