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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AWSSessionCredentials()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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
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.
-
-
-
Method Detail
-
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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public AWSSessionCredentials clone()
-
-