Struct aws_sdk_iot::types::builders::FirehoseActionBuilder
source · #[non_exhaustive]pub struct FirehoseActionBuilder { /* private fields */ }
Expand description
A builder for FirehoseAction
.
Implementations§
source§impl FirehoseActionBuilder
impl FirehoseActionBuilder
sourcepub fn role_arn(self, input: impl Into<String>) -> Self
pub fn role_arn(self, input: impl Into<String>) -> Self
The IAM role that grants access to the Amazon Kinesis Firehose stream.
This field is required.sourcepub fn set_role_arn(self, input: Option<String>) -> Self
pub fn set_role_arn(self, input: Option<String>) -> Self
The IAM role that grants access to the Amazon Kinesis Firehose stream.
sourcepub fn get_role_arn(&self) -> &Option<String>
pub fn get_role_arn(&self) -> &Option<String>
The IAM role that grants access to the Amazon Kinesis Firehose stream.
sourcepub fn delivery_stream_name(self, input: impl Into<String>) -> Self
pub fn delivery_stream_name(self, input: impl Into<String>) -> Self
The delivery stream name.
This field is required.sourcepub fn set_delivery_stream_name(self, input: Option<String>) -> Self
pub fn set_delivery_stream_name(self, input: Option<String>) -> Self
The delivery stream name.
sourcepub fn get_delivery_stream_name(&self) -> &Option<String>
pub fn get_delivery_stream_name(&self) -> &Option<String>
The delivery stream name.
sourcepub fn separator(self, input: impl Into<String>) -> Self
pub fn separator(self, input: impl Into<String>) -> Self
A character separator that will be used to separate records written to the Firehose stream. Valid values are: '\n' (newline), '\t' (tab), '\r\n' (Windows newline), ',' (comma).
sourcepub fn set_separator(self, input: Option<String>) -> Self
pub fn set_separator(self, input: Option<String>) -> Self
A character separator that will be used to separate records written to the Firehose stream. Valid values are: '\n' (newline), '\t' (tab), '\r\n' (Windows newline), ',' (comma).
sourcepub fn get_separator(&self) -> &Option<String>
pub fn get_separator(&self) -> &Option<String>
A character separator that will be used to separate records written to the Firehose stream. Valid values are: '\n' (newline), '\t' (tab), '\r\n' (Windows newline), ',' (comma).
sourcepub fn batch_mode(self, input: bool) -> Self
pub fn batch_mode(self, input: bool) -> Self
Whether to deliver the Kinesis Data Firehose stream as a batch by using PutRecordBatch
. The default value is false
.
When batchMode
is true
and the rule's SQL statement evaluates to an Array, each Array element forms one record in the PutRecordBatch
request. The resulting array can't have more than 500 records.
sourcepub fn set_batch_mode(self, input: Option<bool>) -> Self
pub fn set_batch_mode(self, input: Option<bool>) -> Self
Whether to deliver the Kinesis Data Firehose stream as a batch by using PutRecordBatch
. The default value is false
.
When batchMode
is true
and the rule's SQL statement evaluates to an Array, each Array element forms one record in the PutRecordBatch
request. The resulting array can't have more than 500 records.
sourcepub fn get_batch_mode(&self) -> &Option<bool>
pub fn get_batch_mode(&self) -> &Option<bool>
Whether to deliver the Kinesis Data Firehose stream as a batch by using PutRecordBatch
. The default value is false
.
When batchMode
is true
and the rule's SQL statement evaluates to an Array, each Array element forms one record in the PutRecordBatch
request. The resulting array can't have more than 500 records.
sourcepub fn build(self) -> Result<FirehoseAction, BuildError>
pub fn build(self) -> Result<FirehoseAction, BuildError>
Consumes the builder and constructs a FirehoseAction
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for FirehoseActionBuilder
impl Clone for FirehoseActionBuilder
source§fn clone(&self) -> FirehoseActionBuilder
fn clone(&self) -> FirehoseActionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FirehoseActionBuilder
impl Debug for FirehoseActionBuilder
source§impl Default for FirehoseActionBuilder
impl Default for FirehoseActionBuilder
source§fn default() -> FirehoseActionBuilder
fn default() -> FirehoseActionBuilder
source§impl PartialEq for FirehoseActionBuilder
impl PartialEq for FirehoseActionBuilder
source§fn eq(&self, other: &FirehoseActionBuilder) -> bool
fn eq(&self, other: &FirehoseActionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.