@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Credentials extends Object implements Serializable, Cloneable, StructuredPojo
Amazon Web Services account security credentials that allow interactions with Amazon GameLift resources. The credentials are temporary and valid for a limited time span. You can request fresh credentials at any time.
Amazon Web Services security credentials consist of three parts: an access key ID, a secret access key, and a session token. You must use all three parts together to authenticate your access requests.
You need Amazon Web Services credentials for the following tasks:
To upload a game server build directly to Amazon GameLift S3 storage using CreateBuild
. To get access
for this task, call RequestUploadCredentials.
To remotely connect to an active Amazon GameLift fleet instances. To get remote access, call GetComputeAccess.
Constructor and Description |
---|
Credentials() |
Modifier and Type | Method and Description |
---|---|
Credentials |
clone() |
boolean |
equals(Object obj) |
String |
getAccessKeyId()
The access key ID that identifies the temporary security credentials.
|
String |
getSecretAccessKey()
The secret access key that can be used to sign requests.
|
String |
getSessionToken()
The token that users must pass to the service API to use the temporary credentials.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAccessKeyId(String accessKeyId)
The access key ID that identifies the temporary security credentials.
|
void |
setSecretAccessKey(String secretAccessKey)
The secret access key that can be used to sign requests.
|
void |
setSessionToken(String sessionToken)
The token that users must pass to the service API to use the temporary credentials.
|
String |
toString()
Returns a string representation of this object.
|
Credentials |
withAccessKeyId(String accessKeyId)
The access key ID that identifies the temporary security credentials.
|
Credentials |
withSecretAccessKey(String secretAccessKey)
The secret access key that can be used to sign requests.
|
Credentials |
withSessionToken(String sessionToken)
The token that users must pass to the service API to use the temporary credentials.
|
public void setAccessKeyId(String accessKeyId)
The access key ID that identifies the temporary security credentials.
accessKeyId
- The access key ID that identifies the temporary security credentials.public String getAccessKeyId()
The access key ID that identifies the temporary security credentials.
public Credentials withAccessKeyId(String accessKeyId)
The access key ID that identifies the temporary security credentials.
accessKeyId
- The access key ID that identifies the temporary security credentials.public void setSecretAccessKey(String secretAccessKey)
The secret access key that can be used to sign requests.
secretAccessKey
- The secret access key that can be used to sign requests.public String getSecretAccessKey()
The secret access key that can be used to sign requests.
public Credentials withSecretAccessKey(String secretAccessKey)
The secret access key that can be used to sign requests.
secretAccessKey
- The secret access key that can be used to sign requests.public void setSessionToken(String sessionToken)
The token that users must pass to the service API to use the temporary credentials.
sessionToken
- The token that users must pass to the service API to use the temporary credentials.public String getSessionToken()
The token that users must pass to the service API to use the temporary credentials.
public Credentials withSessionToken(String sessionToken)
The token that users must pass to the service API to use the temporary credentials.
sessionToken
- The token that users must pass to the service API to use the temporary credentials.public String toString()
toString
in class Object
Object.toString()
public Credentials clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.