public class AWSSessionCredentials
extends java.lang.Object
implements java.io.Serializable, java.lang.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.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
accessKeyId
The access key for the session.
|
private java.lang.String |
secretAccessKey
The secret access key for the session.
|
private java.lang.String |
sessionToken
The token for the session.
|
Constructor and Description |
---|
AWSSessionCredentials() |
Modifier and Type | Method and Description |
---|---|
AWSSessionCredentials |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAccessKeyId()
The access key for the session.
|
java.lang.String |
getSecretAccessKey()
The secret access key for the session.
|
java.lang.String |
getSessionToken()
The token for the session.
|
int |
hashCode() |
void |
setAccessKeyId(java.lang.String accessKeyId)
The access key for the session.
|
void |
setSecretAccessKey(java.lang.String secretAccessKey)
The secret access key for the session.
|
void |
setSessionToken(java.lang.String sessionToken)
The token for the session.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AWSSessionCredentials |
withAccessKeyId(java.lang.String accessKeyId)
The access key for the session.
|
AWSSessionCredentials |
withSecretAccessKey(java.lang.String secretAccessKey)
The secret access key for the session.
|
AWSSessionCredentials |
withSessionToken(java.lang.String sessionToken)
The token for the session.
|
private java.lang.String accessKeyId
The access key for the session.
private java.lang.String secretAccessKey
The secret access key for the session.
private java.lang.String sessionToken
The token for the session.
public void setAccessKeyId(java.lang.String accessKeyId)
The access key for the session.
accessKeyId
- The access key for the session.public java.lang.String getAccessKeyId()
The access key for the session.
public AWSSessionCredentials withAccessKeyId(java.lang.String accessKeyId)
The access key for the session.
accessKeyId
- The access key for the session.public void setSecretAccessKey(java.lang.String secretAccessKey)
The secret access key for the session.
secretAccessKey
- The secret access key for the session.public java.lang.String getSecretAccessKey()
The secret access key for the session.
public AWSSessionCredentials withSecretAccessKey(java.lang.String secretAccessKey)
The secret access key for the session.
secretAccessKey
- The secret access key for the session.public void setSessionToken(java.lang.String sessionToken)
The token for the session.
sessionToken
- The token for the session.public java.lang.String getSessionToken()
The token for the session.
public AWSSessionCredentials withSessionToken(java.lang.String sessionToken)
The token for the session.
sessionToken
- The token for the session.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public AWSSessionCredentials clone()
clone
in class java.lang.Object