aws_sdk_pinpoint/client/update_segment.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`UpdateSegment`](crate::operation::update_segment::builders::UpdateSegmentFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`application_id(impl Into<String>)`](crate::operation::update_segment::builders::UpdateSegmentFluentBuilder::application_id) / [`set_application_id(Option<String>)`](crate::operation::update_segment::builders::UpdateSegmentFluentBuilder::set_application_id):<br>required: **true**<br><p>The unique identifier for the application. This identifier is displayed as the <b>Project ID</b> on the Amazon Pinpoint console.</p><br>
7 /// - [`segment_id(impl Into<String>)`](crate::operation::update_segment::builders::UpdateSegmentFluentBuilder::segment_id) / [`set_segment_id(Option<String>)`](crate::operation::update_segment::builders::UpdateSegmentFluentBuilder::set_segment_id):<br>required: **true**<br><p>The unique identifier for the segment.</p><br>
8 /// - [`write_segment_request(WriteSegmentRequest)`](crate::operation::update_segment::builders::UpdateSegmentFluentBuilder::write_segment_request) / [`set_write_segment_request(Option<WriteSegmentRequest>)`](crate::operation::update_segment::builders::UpdateSegmentFluentBuilder::set_write_segment_request):<br>required: **true**<br><p>Specifies the configuration, dimension, and other settings for a segment. A WriteSegmentRequest object can include a Dimensions object or a SegmentGroups object, but not both.</p><br>
9 /// - On success, responds with [`UpdateSegmentOutput`](crate::operation::update_segment::UpdateSegmentOutput) with field(s):
10 /// - [`segment_response(Option<SegmentResponse>)`](crate::operation::update_segment::UpdateSegmentOutput::segment_response): <p>Provides information about the configuration, dimension, and other settings for a segment.</p>
11 /// - On failure, responds with [`SdkError<UpdateSegmentError>`](crate::operation::update_segment::UpdateSegmentError)
12 pub fn update_segment(&self) -> crate::operation::update_segment::builders::UpdateSegmentFluentBuilder {
13 crate::operation::update_segment::builders::UpdateSegmentFluentBuilder::new(self.handle.clone())
14 }
15}