Class FederatedUser
- java.lang.Object
-
- com.amazonaws.services.securitytoken.model.FederatedUser
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class FederatedUser extends Object implements Serializable, Cloneable
Identifiers for the federated user that is associated with the credentials.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FederatedUser()
Default constructor for FederatedUser object.FederatedUser(String federatedUserId, String arn)
Constructs a new FederatedUser object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FederatedUser
clone()
boolean
equals(Object obj)
String
getArn()
The ARN that specifies the federated user that is associated with the credentials.String
getFederatedUserId()
The string that identifies the federated user associated with the credentials, similar to the unique ID of an IAM user.int
hashCode()
void
setArn(String arn)
The ARN that specifies the federated user that is associated with the credentials.void
setFederatedUserId(String federatedUserId)
The string that identifies the federated user associated with the credentials, similar to the unique ID of an IAM user.String
toString()
Returns a string representation of this object; useful for testing and debugging.FederatedUser
withArn(String arn)
The ARN that specifies the federated user that is associated with the credentials.FederatedUser
withFederatedUserId(String federatedUserId)
The string that identifies the federated user associated with the credentials, similar to the unique ID of an IAM user.
-
-
-
Constructor Detail
-
FederatedUser
public FederatedUser()
Default constructor for FederatedUser object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
-
FederatedUser
public FederatedUser(String federatedUserId, String arn)
Constructs a new FederatedUser object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
federatedUserId
- The string that identifies the federated user associated with the credentials, similar to the unique ID of an IAM user.arn
- The ARN that specifies the federated user that is associated with the credentials. For more information about ARNs and how to use them in policies, see IAM Identifiers in Using IAM.
-
-
Method Detail
-
setFederatedUserId
public void setFederatedUserId(String federatedUserId)
The string that identifies the federated user associated with the credentials, similar to the unique ID of an IAM user.
- Parameters:
federatedUserId
- The string that identifies the federated user associated with the credentials, similar to the unique ID of an IAM user.
-
getFederatedUserId
public String getFederatedUserId()
The string that identifies the federated user associated with the credentials, similar to the unique ID of an IAM user.
- Returns:
- The string that identifies the federated user associated with the credentials, similar to the unique ID of an IAM user.
-
withFederatedUserId
public FederatedUser withFederatedUserId(String federatedUserId)
The string that identifies the federated user associated with the credentials, similar to the unique ID of an IAM user.
- Parameters:
federatedUserId
- The string that identifies the federated user associated with the credentials, similar to the unique ID of an IAM user.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setArn
public void setArn(String arn)
The ARN that specifies the federated user that is associated with the credentials. For more information about ARNs and how to use them in policies, see IAM Identifiers in Using IAM.
- Parameters:
arn
- The ARN that specifies the federated user that is associated with the credentials. For more information about ARNs and how to use them in policies, see IAM Identifiers in Using IAM.
-
getArn
public String getArn()
The ARN that specifies the federated user that is associated with the credentials. For more information about ARNs and how to use them in policies, see IAM Identifiers in Using IAM.
- Returns:
- The ARN that specifies the federated user that is associated with the credentials. For more information about ARNs and how to use them in policies, see IAM Identifiers in Using IAM.
-
withArn
public FederatedUser withArn(String arn)
The ARN that specifies the federated user that is associated with the credentials. For more information about ARNs and how to use them in policies, see IAM Identifiers in Using IAM.
- Parameters:
arn
- The ARN that specifies the federated user that is associated with the credentials. For more information about ARNs and how to use them in policies, see IAM Identifiers in Using IAM.- 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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public FederatedUser clone()
-
-