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 Credentials
clone()
boolean
equals(Object obj)
String
getAccessKeyId()
Access key for an AWS account.String
getSecretAccessKey()
Secret key for an AWS account.String
getSessionToken()
Token specific to a build ID.int
hashCode()
void
setAccessKeyId(String accessKeyId)
Access key for an AWS account.void
setSecretAccessKey(String secretAccessKey)
Secret key for an AWS account.void
setSessionToken(String sessionToken)
Token specific to a build ID.String
toString()
Returns a string representation of this object; useful for testing and debugging.Credentials
withAccessKeyId(String accessKeyId)
Access key for an AWS account.Credentials
withSecretAccessKey(String secretAccessKey)
Secret key for an AWS account.Credentials
withSessionToken(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public Credentials clone()
-
-