Class Role

    • Constructor Detail

      • Role

        public Role()
    • Method Detail

      • setPath

        public void setPath​(String path)

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

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

        public String getPath()

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

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

        public Role withPath​(String path)

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

        Parameters:
        path - The path to the role. 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.
      • setRoleName

        public void setRoleName​(String roleName)

        The friendly name that identifies the role.

        Parameters:
        roleName - The friendly name that identifies the role.
      • getRoleName

        public String getRoleName()

        The friendly name that identifies the role.

        Returns:
        The friendly name that identifies the role.
      • withRoleName

        public Role withRoleName​(String roleName)

        The friendly name that identifies the role.

        Parameters:
        roleName - The friendly name that identifies the role.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setRoleId

        public void setRoleId​(String roleId)

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

        Parameters:
        roleId - The stable and unique string identifying the role. For more information about IDs, see IAM Identifiers in the Using IAM guide.
      • getRoleId

        public String getRoleId()

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

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

        public Role withRoleId​(String roleId)

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

        Parameters:
        roleId - The stable and unique string identifying the role. 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 role. 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 role. 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 role. 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 role. For more information about ARNs and how to use them in policies, see IAM Identifiers in the Using IAM guide.
      • withArn

        public Role withArn​(String arn)

        The Amazon Resource Name (ARN) specifying the role. 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 role. 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.
      • withCreateDate

        public Role withCreateDate​(Date createDate)

        The date and time, in ISO 8601 date-time format, when the role was created.

        Parameters:
        createDate - The date and time, in ISO 8601 date-time format, when the role was created.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setAssumeRolePolicyDocument

        public void setAssumeRolePolicyDocument​(String assumeRolePolicyDocument)

        The policy that grants an entity permission to assume the role.

        Parameters:
        assumeRolePolicyDocument - The policy that grants an entity permission to assume the role.
      • getAssumeRolePolicyDocument

        public String getAssumeRolePolicyDocument()

        The policy that grants an entity permission to assume the role.

        Returns:
        The policy that grants an entity permission to assume the role.
      • withAssumeRolePolicyDocument

        public Role withAssumeRolePolicyDocument​(String assumeRolePolicyDocument)

        The policy that grants an entity permission to assume the role.

        Parameters:
        assumeRolePolicyDocument - The policy that grants an entity permission to assume the role.
        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:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object