aws_sdk_xray/operation/get_group/
_get_group_input.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetGroupInput {
pub group_name: ::std::option::Option<::std::string::String>,
pub group_arn: ::std::option::Option<::std::string::String>,
}
impl GetGroupInput {
pub fn group_name(&self) -> ::std::option::Option<&str> {
self.group_name.as_deref()
}
pub fn group_arn(&self) -> ::std::option::Option<&str> {
self.group_arn.as_deref()
}
}
impl GetGroupInput {
pub fn builder() -> crate::operation::get_group::builders::GetGroupInputBuilder {
crate::operation::get_group::builders::GetGroupInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetGroupInputBuilder {
pub(crate) group_name: ::std::option::Option<::std::string::String>,
pub(crate) group_arn: ::std::option::Option<::std::string::String>,
}
impl GetGroupInputBuilder {
pub fn group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.group_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.group_name = input;
self
}
pub fn get_group_name(&self) -> &::std::option::Option<::std::string::String> {
&self.group_name
}
pub fn group_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.group_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_group_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.group_arn = input;
self
}
pub fn get_group_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.group_arn
}
pub fn build(self) -> ::std::result::Result<crate::operation::get_group::GetGroupInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::get_group::GetGroupInput {
group_name: self.group_name,
group_arn: self.group_arn,
})
}
}