@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CustomerManagedChannelS3Storage extends Object implements Serializable, Cloneable, StructuredPojo
Use this to store channel data in an S3 bucket that you manage. If customer managed storage is selected, the "retentionPeriod" parameter is ignored. The choice of service-managed or customer-managed S3 storage cannot be changed after creation of the channel.
Constructor and Description |
---|
CustomerManagedChannelS3Storage() |
Modifier and Type | Method and Description |
---|---|
CustomerManagedChannelS3Storage |
clone() |
boolean |
equals(Object obj) |
String |
getBucket()
The name of the Amazon S3 bucket in which channel data is stored.
|
String |
getKeyPrefix()
[Optional] The prefix used to create the keys of the channel data objects.
|
String |
getRoleArn()
The ARN of the role which grants AWS IoT Analytics permission to interact with your Amazon S3 resources.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBucket(String bucket)
The name of the Amazon S3 bucket in which channel data is stored.
|
void |
setKeyPrefix(String keyPrefix)
[Optional] The prefix used to create the keys of the channel data objects.
|
void |
setRoleArn(String roleArn)
The ARN of the role which grants AWS IoT Analytics permission to interact with your Amazon S3 resources.
|
String |
toString()
Returns a string representation of this object.
|
CustomerManagedChannelS3Storage |
withBucket(String bucket)
The name of the Amazon S3 bucket in which channel data is stored.
|
CustomerManagedChannelS3Storage |
withKeyPrefix(String keyPrefix)
[Optional] The prefix used to create the keys of the channel data objects.
|
CustomerManagedChannelS3Storage |
withRoleArn(String roleArn)
The ARN of the role which grants AWS IoT Analytics permission to interact with your Amazon S3 resources.
|
public void setBucket(String bucket)
The name of the Amazon S3 bucket in which channel data is stored.
bucket
- The name of the Amazon S3 bucket in which channel data is stored.public String getBucket()
The name of the Amazon S3 bucket in which channel data is stored.
public CustomerManagedChannelS3Storage withBucket(String bucket)
The name of the Amazon S3 bucket in which channel data is stored.
bucket
- The name of the Amazon S3 bucket in which channel data is stored.public void setKeyPrefix(String keyPrefix)
[Optional] The prefix used to create the keys of the channel data objects. Each object in an Amazon S3 bucket has a key that is its unique identifier within the bucket (each object in a bucket has exactly one key). The prefix must end with a '/'.
keyPrefix
- [Optional] The prefix used to create the keys of the channel data objects. Each object in an Amazon S3
bucket has a key that is its unique identifier within the bucket (each object in a bucket has exactly one
key). The prefix must end with a '/'.public String getKeyPrefix()
[Optional] The prefix used to create the keys of the channel data objects. Each object in an Amazon S3 bucket has a key that is its unique identifier within the bucket (each object in a bucket has exactly one key). The prefix must end with a '/'.
public CustomerManagedChannelS3Storage withKeyPrefix(String keyPrefix)
[Optional] The prefix used to create the keys of the channel data objects. Each object in an Amazon S3 bucket has a key that is its unique identifier within the bucket (each object in a bucket has exactly one key). The prefix must end with a '/'.
keyPrefix
- [Optional] The prefix used to create the keys of the channel data objects. Each object in an Amazon S3
bucket has a key that is its unique identifier within the bucket (each object in a bucket has exactly one
key). The prefix must end with a '/'.public void setRoleArn(String roleArn)
The ARN of the role which grants AWS IoT Analytics permission to interact with your Amazon S3 resources.
roleArn
- The ARN of the role which grants AWS IoT Analytics permission to interact with your Amazon S3 resources.public String getRoleArn()
The ARN of the role which grants AWS IoT Analytics permission to interact with your Amazon S3 resources.
public CustomerManagedChannelS3Storage withRoleArn(String roleArn)
The ARN of the role which grants AWS IoT Analytics permission to interact with your Amazon S3 resources.
roleArn
- The ARN of the role which grants AWS IoT Analytics permission to interact with your Amazon S3 resources.public String toString()
toString
in class Object
Object.toString()
public CustomerManagedChannelS3Storage clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.