aws_sdk_xray/operation/get_groups/
_get_groups_input.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct GetGroupsInput {
6 pub next_token: ::std::option::Option<::std::string::String>,
8}
9impl GetGroupsInput {
10 pub fn next_token(&self) -> ::std::option::Option<&str> {
12 self.next_token.as_deref()
13 }
14}
15impl GetGroupsInput {
16 pub fn builder() -> crate::operation::get_groups::builders::GetGroupsInputBuilder {
18 crate::operation::get_groups::builders::GetGroupsInputBuilder::default()
19 }
20}
21
22#[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 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 pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
36 self.next_token = input;
37 self
38 }
39 pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
41 &self.next_token
42 }
43 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}