public class GetFederationTokenResult extends Object implements Serializable, Cloneable
Contains the response to a successful GetFederationToken request, including temporary AWS credentials that can be used to make AWS requests.
Constructor and Description |
---|
GetFederationTokenResult() |
Modifier and Type | Method and Description |
---|---|
GetFederationTokenResult |
clone() |
boolean |
equals(Object obj) |
Credentials |
getCredentials()
Credentials for the service API authentication.
|
FederatedUser |
getFederatedUser()
Identifiers for the federated user associated with the credentials (such
as
arn:aws:sts::123456789012:federated-user/Bob or
123456789012:Bob ). |
Integer |
getPackedPolicySize()
A percentage value indicating the size of the policy in packed form.
|
int |
hashCode() |
void |
setCredentials(Credentials credentials)
Credentials for the service API authentication.
|
void |
setFederatedUser(FederatedUser federatedUser)
Identifiers for the federated user associated with the credentials (such
as
arn:aws:sts::123456789012:federated-user/Bob or
123456789012:Bob ). |
void |
setPackedPolicySize(Integer packedPolicySize)
A percentage value indicating the size of the policy in packed form.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetFederationTokenResult |
withCredentials(Credentials credentials)
Credentials for the service API authentication.
|
GetFederationTokenResult |
withFederatedUser(FederatedUser federatedUser)
Identifiers for the federated user associated with the credentials (such
as
arn:aws:sts::123456789012:federated-user/Bob or
123456789012:Bob ). |
GetFederationTokenResult |
withPackedPolicySize(Integer packedPolicySize)
A percentage value indicating the size of the policy in packed form.
|
public void setCredentials(Credentials credentials)
Credentials for the service API authentication.
credentials
- Credentials for the service API authentication.public Credentials getCredentials()
Credentials for the service API authentication.
public GetFederationTokenResult withCredentials(Credentials credentials)
Credentials for the service API authentication.
credentials
- Credentials for the service API authentication.public void setFederatedUser(FederatedUser federatedUser)
Identifiers for the federated user associated with the credentials (such
as arn:aws:sts::123456789012:federated-user/Bob
or
123456789012:Bob
). You can use the federated user's ARN in
your resource-based policies, such as an Amazon S3 bucket policy.
federatedUser
- Identifiers for the federated user associated with the credentials
(such as arn:aws:sts::123456789012:federated-user/Bob
or 123456789012:Bob
). You can use the federated
user's ARN in your resource-based policies, such as an Amazon S3
bucket policy.public FederatedUser getFederatedUser()
Identifiers for the federated user associated with the credentials (such
as arn:aws:sts::123456789012:federated-user/Bob
or
123456789012:Bob
). You can use the federated user's ARN in
your resource-based policies, such as an Amazon S3 bucket policy.
arn:aws:sts::123456789012:federated-user/Bob
or
123456789012:Bob
). You can use the federated user's
ARN in your resource-based policies, such as an Amazon S3 bucket
policy.public GetFederationTokenResult withFederatedUser(FederatedUser federatedUser)
Identifiers for the federated user associated with the credentials (such
as arn:aws:sts::123456789012:federated-user/Bob
or
123456789012:Bob
). You can use the federated user's ARN in
your resource-based policies, such as an Amazon S3 bucket policy.
federatedUser
- Identifiers for the federated user associated with the credentials
(such as arn:aws:sts::123456789012:federated-user/Bob
or 123456789012:Bob
). You can use the federated
user's ARN in your resource-based policies, such as an Amazon S3
bucket policy.public void setPackedPolicySize(Integer packedPolicySize)
A percentage value indicating the size of the policy in packed form. The service rejects policies for which the packed size is greater than 100 percent of the allowed value.
packedPolicySize
- A percentage value indicating the size of the policy in packed
form. The service rejects policies for which the packed size is
greater than 100 percent of the allowed value.public Integer getPackedPolicySize()
A percentage value indicating the size of the policy in packed form. The service rejects policies for which the packed size is greater than 100 percent of the allowed value.
public GetFederationTokenResult withPackedPolicySize(Integer packedPolicySize)
A percentage value indicating the size of the policy in packed form. The service rejects policies for which the packed size is greater than 100 percent of the allowed value.
packedPolicySize
- A percentage value indicating the size of the policy in packed
form. The service rejects policies for which the packed size is
greater than 100 percent of the allowed value.public String toString()
toString
in class Object
Object.toString()
public GetFederationTokenResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.