aws_sdk_xray/operation/get_groups/
_get_groups_input.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct GetGroupsInput {
6    /// <p>Pagination token.</p>
7    pub next_token: ::std::option::Option<::std::string::String>,
8}
9impl GetGroupsInput {
10    /// <p>Pagination token.</p>
11    pub fn next_token(&self) -> ::std::option::Option<&str> {
12        self.next_token.as_deref()
13    }
14}
15impl GetGroupsInput {
16    /// Creates a new builder-style object to manufacture [`GetGroupsInput`](crate::operation::get_groups::GetGroupsInput).
17    pub fn builder() -> crate::operation::get_groups::builders::GetGroupsInputBuilder {
18        crate::operation::get_groups::builders::GetGroupsInputBuilder::default()
19    }
20}
21
22/// A builder for [`GetGroupsInput`](crate::operation::get_groups::GetGroupsInput).
23#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
24#[non_exhaustive]
25pub struct GetGroupsInputBuilder {
26    pub(crate) next_token: ::std::option::Option<::std::string::String>,
27}
28impl GetGroupsInputBuilder {
29    /// <p>Pagination token.</p>
30    pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
31        self.next_token = ::std::option::Option::Some(input.into());
32        self
33    }
34    /// <p>Pagination token.</p>
35    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
36        self.next_token = input;
37        self
38    }
39    /// <p>Pagination token.</p>
40    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
41        &self.next_token
42    }
43    /// Consumes the builder and constructs a [`GetGroupsInput`](crate::operation::get_groups::GetGroupsInput).
44    pub fn build(self) -> ::std::result::Result<crate::operation::get_groups::GetGroupsInput, ::aws_smithy_types::error::operation::BuildError> {
45        ::std::result::Result::Ok(crate::operation::get_groups::GetGroupsInput { next_token: self.next_token })
46    }
47}