Struct aws_sdk_cloudfront::model::realtime_log_config::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for RealtimeLogConfig.
Implementations§
source§impl Builder
impl Builder
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of this real-time log configuration.
sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of this real-time log configuration.
Examples found in repository?
6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136
pub fn deser_structure_crate_model_realtime_log_config(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::RealtimeLogConfig, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::RealtimeLogConfig::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ARN") /* ARN com.amazonaws.cloudfront#RealtimeLogConfig$ARN */ => {
let var_142 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_arn(var_142);
}
,
s if s.matches("Name") /* Name com.amazonaws.cloudfront#RealtimeLogConfig$Name */ => {
let var_143 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_name(var_143);
}
,
s if s.matches("SamplingRate") /* SamplingRate com.amazonaws.cloudfront#RealtimeLogConfig$SamplingRate */ => {
let var_144 =
Some(
{
<i64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (long: `com.amazonaws.cloudfront#long`)"))
}
?
)
;
builder = builder.set_sampling_rate(var_144);
}
,
s if s.matches("EndPoints") /* EndPoints com.amazonaws.cloudfront#RealtimeLogConfig$EndPoints */ => {
let var_145 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudfront_end_point_list(&mut tag)
?
)
;
builder = builder.set_end_points(var_145);
}
,
s if s.matches("Fields") /* Fields com.amazonaws.cloudfront#RealtimeLogConfig$Fields */ => {
let var_146 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudfront_field_list(&mut tag)
?
)
;
builder = builder.set_fields(var_146);
}
,
_ => {}
}
}
Ok(builder.build())
}sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The unique name of this real-time log configuration.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The unique name of this real-time log configuration.
Examples found in repository?
6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136
pub fn deser_structure_crate_model_realtime_log_config(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::RealtimeLogConfig, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::RealtimeLogConfig::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ARN") /* ARN com.amazonaws.cloudfront#RealtimeLogConfig$ARN */ => {
let var_142 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_arn(var_142);
}
,
s if s.matches("Name") /* Name com.amazonaws.cloudfront#RealtimeLogConfig$Name */ => {
let var_143 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_name(var_143);
}
,
s if s.matches("SamplingRate") /* SamplingRate com.amazonaws.cloudfront#RealtimeLogConfig$SamplingRate */ => {
let var_144 =
Some(
{
<i64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (long: `com.amazonaws.cloudfront#long`)"))
}
?
)
;
builder = builder.set_sampling_rate(var_144);
}
,
s if s.matches("EndPoints") /* EndPoints com.amazonaws.cloudfront#RealtimeLogConfig$EndPoints */ => {
let var_145 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudfront_end_point_list(&mut tag)
?
)
;
builder = builder.set_end_points(var_145);
}
,
s if s.matches("Fields") /* Fields com.amazonaws.cloudfront#RealtimeLogConfig$Fields */ => {
let var_146 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudfront_field_list(&mut tag)
?
)
;
builder = builder.set_fields(var_146);
}
,
_ => {}
}
}
Ok(builder.build())
}sourcepub fn sampling_rate(self, input: i64) -> Self
pub fn sampling_rate(self, input: i64) -> Self
The sampling rate for this real-time log configuration. The sampling rate determines the percentage of viewer requests that are represented in the real-time log data. The sampling rate is an integer between 1 and 100, inclusive.
sourcepub fn set_sampling_rate(self, input: Option<i64>) -> Self
pub fn set_sampling_rate(self, input: Option<i64>) -> Self
The sampling rate for this real-time log configuration. The sampling rate determines the percentage of viewer requests that are represented in the real-time log data. The sampling rate is an integer between 1 and 100, inclusive.
Examples found in repository?
6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136
pub fn deser_structure_crate_model_realtime_log_config(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::RealtimeLogConfig, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::RealtimeLogConfig::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ARN") /* ARN com.amazonaws.cloudfront#RealtimeLogConfig$ARN */ => {
let var_142 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_arn(var_142);
}
,
s if s.matches("Name") /* Name com.amazonaws.cloudfront#RealtimeLogConfig$Name */ => {
let var_143 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_name(var_143);
}
,
s if s.matches("SamplingRate") /* SamplingRate com.amazonaws.cloudfront#RealtimeLogConfig$SamplingRate */ => {
let var_144 =
Some(
{
<i64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (long: `com.amazonaws.cloudfront#long`)"))
}
?
)
;
builder = builder.set_sampling_rate(var_144);
}
,
s if s.matches("EndPoints") /* EndPoints com.amazonaws.cloudfront#RealtimeLogConfig$EndPoints */ => {
let var_145 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudfront_end_point_list(&mut tag)
?
)
;
builder = builder.set_end_points(var_145);
}
,
s if s.matches("Fields") /* Fields com.amazonaws.cloudfront#RealtimeLogConfig$Fields */ => {
let var_146 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudfront_field_list(&mut tag)
?
)
;
builder = builder.set_fields(var_146);
}
,
_ => {}
}
}
Ok(builder.build())
}sourcepub fn end_points(self, input: EndPoint) -> Self
pub fn end_points(self, input: EndPoint) -> Self
Appends an item to end_points.
To override the contents of this collection use set_end_points.
Contains information about the Amazon Kinesis data stream where you are sending real-time log data for this real-time log configuration.
sourcepub fn set_end_points(self, input: Option<Vec<EndPoint>>) -> Self
pub fn set_end_points(self, input: Option<Vec<EndPoint>>) -> Self
Contains information about the Amazon Kinesis data stream where you are sending real-time log data for this real-time log configuration.
Examples found in repository?
6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136
pub fn deser_structure_crate_model_realtime_log_config(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::RealtimeLogConfig, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::RealtimeLogConfig::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ARN") /* ARN com.amazonaws.cloudfront#RealtimeLogConfig$ARN */ => {
let var_142 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_arn(var_142);
}
,
s if s.matches("Name") /* Name com.amazonaws.cloudfront#RealtimeLogConfig$Name */ => {
let var_143 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_name(var_143);
}
,
s if s.matches("SamplingRate") /* SamplingRate com.amazonaws.cloudfront#RealtimeLogConfig$SamplingRate */ => {
let var_144 =
Some(
{
<i64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (long: `com.amazonaws.cloudfront#long`)"))
}
?
)
;
builder = builder.set_sampling_rate(var_144);
}
,
s if s.matches("EndPoints") /* EndPoints com.amazonaws.cloudfront#RealtimeLogConfig$EndPoints */ => {
let var_145 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudfront_end_point_list(&mut tag)
?
)
;
builder = builder.set_end_points(var_145);
}
,
s if s.matches("Fields") /* Fields com.amazonaws.cloudfront#RealtimeLogConfig$Fields */ => {
let var_146 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudfront_field_list(&mut tag)
?
)
;
builder = builder.set_fields(var_146);
}
,
_ => {}
}
}
Ok(builder.build())
}sourcepub fn fields(self, input: impl Into<String>) -> Self
pub fn fields(self, input: impl Into<String>) -> Self
Appends an item to fields.
To override the contents of this collection use set_fields.
A list of fields that are included in each real-time log record. In an API response, the fields are provided in the same order in which they are sent to the Amazon Kinesis data stream.
For more information about fields, see Real-time log configuration fields in the Amazon CloudFront Developer Guide.
sourcepub fn set_fields(self, input: Option<Vec<String>>) -> Self
pub fn set_fields(self, input: Option<Vec<String>>) -> Self
A list of fields that are included in each real-time log record. In an API response, the fields are provided in the same order in which they are sent to the Amazon Kinesis data stream.
For more information about fields, see Real-time log configuration fields in the Amazon CloudFront Developer Guide.
Examples found in repository?
6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136
pub fn deser_structure_crate_model_realtime_log_config(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::RealtimeLogConfig, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::RealtimeLogConfig::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ARN") /* ARN com.amazonaws.cloudfront#RealtimeLogConfig$ARN */ => {
let var_142 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_arn(var_142);
}
,
s if s.matches("Name") /* Name com.amazonaws.cloudfront#RealtimeLogConfig$Name */ => {
let var_143 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_name(var_143);
}
,
s if s.matches("SamplingRate") /* SamplingRate com.amazonaws.cloudfront#RealtimeLogConfig$SamplingRate */ => {
let var_144 =
Some(
{
<i64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (long: `com.amazonaws.cloudfront#long`)"))
}
?
)
;
builder = builder.set_sampling_rate(var_144);
}
,
s if s.matches("EndPoints") /* EndPoints com.amazonaws.cloudfront#RealtimeLogConfig$EndPoints */ => {
let var_145 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudfront_end_point_list(&mut tag)
?
)
;
builder = builder.set_end_points(var_145);
}
,
s if s.matches("Fields") /* Fields com.amazonaws.cloudfront#RealtimeLogConfig$Fields */ => {
let var_146 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudfront_field_list(&mut tag)
?
)
;
builder = builder.set_fields(var_146);
}
,
_ => {}
}
}
Ok(builder.build())
}sourcepub fn build(self) -> RealtimeLogConfig
pub fn build(self) -> RealtimeLogConfig
Consumes the builder and constructs a RealtimeLogConfig.
Examples found in repository?
6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136
pub fn deser_structure_crate_model_realtime_log_config(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::RealtimeLogConfig, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::RealtimeLogConfig::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ARN") /* ARN com.amazonaws.cloudfront#RealtimeLogConfig$ARN */ => {
let var_142 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_arn(var_142);
}
,
s if s.matches("Name") /* Name com.amazonaws.cloudfront#RealtimeLogConfig$Name */ => {
let var_143 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_name(var_143);
}
,
s if s.matches("SamplingRate") /* SamplingRate com.amazonaws.cloudfront#RealtimeLogConfig$SamplingRate */ => {
let var_144 =
Some(
{
<i64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (long: `com.amazonaws.cloudfront#long`)"))
}
?
)
;
builder = builder.set_sampling_rate(var_144);
}
,
s if s.matches("EndPoints") /* EndPoints com.amazonaws.cloudfront#RealtimeLogConfig$EndPoints */ => {
let var_145 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudfront_end_point_list(&mut tag)
?
)
;
builder = builder.set_end_points(var_145);
}
,
s if s.matches("Fields") /* Fields com.amazonaws.cloudfront#RealtimeLogConfig$Fields */ => {
let var_146 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudfront_field_list(&mut tag)
?
)
;
builder = builder.set_fields(var_146);
}
,
_ => {}
}
}
Ok(builder.build())
}