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:
  • Constructor Details

    • Credentials

      public Credentials()
  • Method Details

    • 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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public Credentials clone()
      Overrides:
      clone in class Object