@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSSessionCredentials extends Object implements Serializable, Cloneable, StructuredPojo
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.
Constructor and Description |
---|
AWSSessionCredentials() |
Modifier and Type | Method and Description |
---|---|
AWSSessionCredentials |
clone() |
boolean |
equals(Object obj) |
String |
getAccessKeyId()
The access key for the session.
|
String |
getSecretAccessKey()
The secret access key for the session.
|
String |
getSessionToken()
The token for the session.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAccessKeyId(String accessKeyId)
The access key for the session.
|
void |
setSecretAccessKey(String secretAccessKey)
The secret access key for the session.
|
void |
setSessionToken(String sessionToken)
The token for the session.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
AWSSessionCredentials |
withAccessKeyId(String accessKeyId)
The access key for the session.
|
AWSSessionCredentials |
withSecretAccessKey(String secretAccessKey)
The secret access key for the session.
|
AWSSessionCredentials |
withSessionToken(String sessionToken)
The token for the session.
|
public void setAccessKeyId(String accessKeyId)
The access key for the session.
accessKeyId
- The access key for the session.public String getAccessKeyId()
The access key for the session.
public AWSSessionCredentials withAccessKeyId(String accessKeyId)
The access key for the session.
accessKeyId
- The access key for the session.public void setSecretAccessKey(String secretAccessKey)
The secret access key for the session.
secretAccessKey
- The secret access key for the session.public String getSecretAccessKey()
The secret access key for the session.
public AWSSessionCredentials withSecretAccessKey(String secretAccessKey)
The secret access key for the session.
secretAccessKey
- The secret access key for the session.public void setSessionToken(String sessionToken)
The token for the session.
sessionToken
- The token for the session.public String getSessionToken()
The token for the session.
public AWSSessionCredentials withSessionToken(String sessionToken)
The token for the session.
sessionToken
- The token for the session.public String toString()
toString
in class Object
Object.toString()
public AWSSessionCredentials clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.