@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class S3Config extends Object implements Serializable, Cloneable, StructuredPojo
The path to the file(s) in an Amazon Simple Storage Service (Amazon S3) bucket, and an AWS Identity and Access Management (IAM) role that Amazon Forecast can assume to access the file(s). Optionally, includes an AWS Key Management Service (KMS) key. This object is part of the DataSource object that is submitted in the CreateDatasetImportJob request, and part of the DataDestination object.
Constructor and Description |
---|
S3Config() |
Modifier and Type | Method and Description |
---|---|
S3Config |
clone() |
boolean |
equals(Object obj) |
String |
getKMSKeyArn()
The Amazon Resource Name (ARN) of an AWS Key Management Service (KMS) key.
|
String |
getPath()
The path to an Amazon Simple Storage Service (Amazon S3) bucket or file(s) in an Amazon S3 bucket.
|
String |
getRoleArn()
The ARN of the AWS Identity and Access Management (IAM) role that Amazon Forecast can assume to access the Amazon
S3 bucket or files.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setKMSKeyArn(String kMSKeyArn)
The Amazon Resource Name (ARN) of an AWS Key Management Service (KMS) key.
|
void |
setPath(String path)
The path to an Amazon Simple Storage Service (Amazon S3) bucket or file(s) in an Amazon S3 bucket.
|
void |
setRoleArn(String roleArn)
The ARN of the AWS Identity and Access Management (IAM) role that Amazon Forecast can assume to access the Amazon
S3 bucket or files.
|
String |
toString()
Returns a string representation of this object.
|
S3Config |
withKMSKeyArn(String kMSKeyArn)
The Amazon Resource Name (ARN) of an AWS Key Management Service (KMS) key.
|
S3Config |
withPath(String path)
The path to an Amazon Simple Storage Service (Amazon S3) bucket or file(s) in an Amazon S3 bucket.
|
S3Config |
withRoleArn(String roleArn)
The ARN of the AWS Identity and Access Management (IAM) role that Amazon Forecast can assume to access the Amazon
S3 bucket or files.
|
public void setPath(String path)
The path to an Amazon Simple Storage Service (Amazon S3) bucket or file(s) in an Amazon S3 bucket.
path
- The path to an Amazon Simple Storage Service (Amazon S3) bucket or file(s) in an Amazon S3 bucket.public String getPath()
The path to an Amazon Simple Storage Service (Amazon S3) bucket or file(s) in an Amazon S3 bucket.
public S3Config withPath(String path)
The path to an Amazon Simple Storage Service (Amazon S3) bucket or file(s) in an Amazon S3 bucket.
path
- The path to an Amazon Simple Storage Service (Amazon S3) bucket or file(s) in an Amazon S3 bucket.public void setRoleArn(String roleArn)
The ARN of the AWS Identity and Access Management (IAM) role that Amazon Forecast can assume to access the Amazon
S3 bucket or files. If you provide a value for the KMSKeyArn
key, the role must allow access to the
key.
Passing a role across AWS accounts is not allowed. If you pass a role that isn't in your account, you get an
InvalidInputException
error.
roleArn
- The ARN of the AWS Identity and Access Management (IAM) role that Amazon Forecast can assume to access the
Amazon S3 bucket or files. If you provide a value for the KMSKeyArn
key, the role must allow
access to the key.
Passing a role across AWS accounts is not allowed. If you pass a role that isn't in your account, you get
an InvalidInputException
error.
public String getRoleArn()
The ARN of the AWS Identity and Access Management (IAM) role that Amazon Forecast can assume to access the Amazon
S3 bucket or files. If you provide a value for the KMSKeyArn
key, the role must allow access to the
key.
Passing a role across AWS accounts is not allowed. If you pass a role that isn't in your account, you get an
InvalidInputException
error.
KMSKeyArn
key, the role must
allow access to the key.
Passing a role across AWS accounts is not allowed. If you pass a role that isn't in your account, you get
an InvalidInputException
error.
public S3Config withRoleArn(String roleArn)
The ARN of the AWS Identity and Access Management (IAM) role that Amazon Forecast can assume to access the Amazon
S3 bucket or files. If you provide a value for the KMSKeyArn
key, the role must allow access to the
key.
Passing a role across AWS accounts is not allowed. If you pass a role that isn't in your account, you get an
InvalidInputException
error.
roleArn
- The ARN of the AWS Identity and Access Management (IAM) role that Amazon Forecast can assume to access the
Amazon S3 bucket or files. If you provide a value for the KMSKeyArn
key, the role must allow
access to the key.
Passing a role across AWS accounts is not allowed. If you pass a role that isn't in your account, you get
an InvalidInputException
error.
public void setKMSKeyArn(String kMSKeyArn)
The Amazon Resource Name (ARN) of an AWS Key Management Service (KMS) key.
kMSKeyArn
- The Amazon Resource Name (ARN) of an AWS Key Management Service (KMS) key.public String getKMSKeyArn()
The Amazon Resource Name (ARN) of an AWS Key Management Service (KMS) key.
public S3Config withKMSKeyArn(String kMSKeyArn)
The Amazon Resource Name (ARN) of an AWS Key Management Service (KMS) key.
kMSKeyArn
- The Amazon Resource Name (ARN) of an AWS Key Management Service (KMS) key.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.