Class AWSSessionCredentials

java.lang.Object
com.amazonaws.services.codepipeline.model.AWSSessionCredentials
All Implemented Interfaces:
Serializable, Cloneable

public class AWSSessionCredentials extends Object implements Serializable, Cloneable

Represents an AWS session credentials object. These credentials are temporary credentials that are issued by AWS Secure Token Service (STS). They can be used to access input and output artifacts in the Amazon S3 bucket used to store artifact for the pipeline in AWS CodePipeline.

See Also:
  • Constructor Details

    • AWSSessionCredentials

      public AWSSessionCredentials()
  • Method Details

    • setAccessKeyId

      public void setAccessKeyId(String accessKeyId)

      The access key for the session.

      Parameters:
      accessKeyId - The access key for the session.
    • getAccessKeyId

      public String getAccessKeyId()

      The access key for the session.

      Returns:
      The access key for the session.
    • withAccessKeyId

      public AWSSessionCredentials withAccessKeyId(String accessKeyId)

      The access key for the session.

      Parameters:
      accessKeyId - The access key for the session.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setSecretAccessKey

      public void setSecretAccessKey(String secretAccessKey)

      The secret access key for the session.

      Parameters:
      secretAccessKey - The secret access key for the session.
    • getSecretAccessKey

      public String getSecretAccessKey()

      The secret access key for the session.

      Returns:
      The secret access key for the session.
    • withSecretAccessKey

      public AWSSessionCredentials withSecretAccessKey(String secretAccessKey)

      The secret access key for the session.

      Parameters:
      secretAccessKey - The secret access key for the session.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setSessionToken

      public void setSessionToken(String sessionToken)

      The token for the session.

      Parameters:
      sessionToken - The token for the session.
    • getSessionToken

      public String getSessionToken()

      The token for the session.

      Returns:
      The token for the session.
    • withSessionToken

      public AWSSessionCredentials withSessionToken(String sessionToken)

      The token for the session.

      Parameters:
      sessionToken - The token for the session.
      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 AWSSessionCredentials clone()
      Overrides:
      clone in class Object