org.jclouds.iam.domain
Class User

java.lang.Object
  extended by org.jclouds.iam.domain.User

public class User
extends Object

Author:
Adrian Cole
See Also:

Nested Class Summary
static class User.Builder<T extends User.Builder<T>>
           
 
Constructor Summary
protected User(com.google.common.base.Optional<String> path, com.google.common.base.Optional<String> name, String id, String arn, Date createDate)
           
 
Method Summary
static User.Builder<?> builder()
           
 boolean equals(Object obj)
          
 String getArn()
          Although most resources have a friendly name (for example, a user named Bob or a group named Developers), the access policy language requires you to specify the resource or resources using the following Amazon Resource Name (ARN) format.
 Date getCreateDate()
          Date the user was created
 String getId()
          We assign each user, group, and server certificate a globally unique identifier (GUID), which we return to you when you use the API or CLI to create it.
 com.google.common.base.Optional<String> getName()
          When you create a user, a role, or a group, or when you upload a server certificate, you give it a friendly name, such as Bob, TestApp1, Developers, or ProdServerCert.
 com.google.common.base.Optional<String> getPath()
          you can also optionally give the entity a path that you define.
 int hashCode()
          
 User.Builder<?> toBuilder()
           
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

User

protected User(com.google.common.base.Optional<String> path,
               com.google.common.base.Optional<String> name,
               String id,
               String arn,
               Date createDate)
Method Detail

builder

public static User.Builder<?> builder()

toBuilder

public User.Builder<?> toBuilder()

getPath

public com.google.common.base.Optional<String> getPath()
you can also optionally give the entity a path that you define. You might use the path to identify which division or part of the organization the entity belongs in. For example: /division_abc/subdivision_xyz/product_1234/engineering/


getName

public com.google.common.base.Optional<String> getName()
When you create a user, a role, or a group, or when you upload a server certificate, you give it a friendly name, such as Bob, TestApp1, Developers, or ProdServerCert. Whenever you need to specify a particular entity in an API call to IAM (for example, to delete a user, or update a group with a new user), you use the friendly name.


getId

public String getId()
We assign each user, group, and server certificate a globally unique identifier (GUID), which we return to you when you use the API or CLI to create it. We recommend you store the GUID in your own database along with the user, group, or certificate name. Internally we use the GUID to identify the user, group, or certificate, and we translate the value into the ARN or friendly name as appropriate when displaying the user, group, or certificate information to you. If you delete a user, group, or server certificate, any residual remote references to that item display the GUID as the friendly name part in the ARN. If you've stored the GUID in your own system, you can then use the displayed GUID to identify the deleted item being referred to.


getArn

public String getArn()
Although most resources have a friendly name (for example, a user named Bob or a group named Developers), the access policy language requires you to specify the resource or resources using the following Amazon Resource Name (ARN) format. arn:aws:<service>:<region>:<namespace>:<relative-id>


getCreateDate

public Date getCreateDate()
Date the user was created


hashCode

public int hashCode()

Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2009-2012 jclouds. All Rights Reserved.