Class Credentials
- java.lang.Object
-
- com.amazonaws.services.gamelift.model.Credentials
-
- All Implemented Interfaces:
Serializable,Cloneable
public class Credentials extends Object implements Serializable, Cloneable
AWS access credentials required to upload game build files to Amazon GameLift. These credentials are generated with CreateBuild, and are valid for a limited time. If they expire before you upload your game build, get a new set by calling RequestUploadCredentials.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Credentials()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Credentialsclone()booleanequals(Object obj)StringgetAccessKeyId()Access key for an AWS account.StringgetSecretAccessKey()Secret key for an AWS account.StringgetSessionToken()Token specific to a build ID.inthashCode()voidsetAccessKeyId(String accessKeyId)Access key for an AWS account.voidsetSecretAccessKey(String secretAccessKey)Secret key for an AWS account.voidsetSessionToken(String sessionToken)Token specific to a build ID.StringtoString()Returns a string representation of this object; useful for testing and debugging.CredentialswithAccessKeyId(String accessKeyId)Access key for an AWS account.CredentialswithSecretAccessKey(String secretAccessKey)Secret key for an AWS account.CredentialswithSessionToken(String sessionToken)Token specific to a build ID.
-
-
-
Method Detail
-
setAccessKeyId
public void setAccessKeyId(String accessKeyId)
Access key for an AWS account.
- Parameters:
accessKeyId- Access key for an AWS account.
-
getAccessKeyId
public String getAccessKeyId()
Access key for an AWS account.
- Returns:
- Access key for an AWS account.
-
withAccessKeyId
public Credentials withAccessKeyId(String accessKeyId)
Access key for an AWS account.
- Parameters:
accessKeyId- Access key for an AWS account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSecretAccessKey
public void setSecretAccessKey(String secretAccessKey)
Secret key for an AWS account.
- Parameters:
secretAccessKey- Secret key for an AWS account.
-
getSecretAccessKey
public String getSecretAccessKey()
Secret key for an AWS account.
- Returns:
- Secret key for an AWS account.
-
withSecretAccessKey
public Credentials withSecretAccessKey(String secretAccessKey)
Secret key for an AWS account.
- Parameters:
secretAccessKey- Secret key for an AWS account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSessionToken
public void setSessionToken(String sessionToken)
Token specific to a build ID.
- Parameters:
sessionToken- Token specific to a build ID.
-
getSessionToken
public String getSessionToken()
Token specific to a build ID.
- Returns:
- Token specific to a build ID.
-
withSessionToken
public Credentials withSessionToken(String sessionToken)
Token specific to a build ID.
- Parameters:
sessionToken- Token specific to a build ID.- 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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public Credentials clone()
-
-