public class GetFederationTokenResult extends Object implements Serializable
Contains the result of a successful call to the GetFederationToken action, including temporary AWS credentials that can be used to make AWS requests.
Constructor and Description |
---|
GetFederationTokenResult() |
Modifier and Type | Method and Description |
---|---|
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 Credentials getCredentials()
public void setCredentials(Credentials credentials)
credentials
- Credentials for the service API authentication.public GetFederationTokenResult withCredentials(Credentials credentials)
Returns a reference to this object so that method calls can be chained together.
credentials
- Credentials for the service API authentication.public FederatedUser getFederatedUser()
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 void setFederatedUser(FederatedUser federatedUser)
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 GetFederationTokenResult withFederatedUser(FederatedUser federatedUser)
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.
Returns a reference to this object so that method calls can be chained together.
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 Integer getPackedPolicySize()
Constraints:
Range: 0 -
public void setPackedPolicySize(Integer packedPolicySize)
Constraints:
Range: 0 -
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 GetFederationTokenResult withPackedPolicySize(Integer packedPolicySize)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 0 -
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()
Copyright © 2014. All rights reserved.