aws_sdk_cloudextensions/operation/get_profile/
_get_profile_input.rs1#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct GetProfileInput {
7 pub identifier: ::std::option::Option<::std::string::String>,
9}
10impl GetProfileInput {
11 pub fn identifier(&self) -> ::std::option::Option<&str> {
13 self.identifier.as_deref()
14 }
15}
16impl GetProfileInput {
17 pub fn builder() -> crate::operation::get_profile::builders::GetProfileInputBuilder {
19 crate::operation::get_profile::builders::GetProfileInputBuilder::default()
20 }
21}
22
23#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
25#[non_exhaustive]
26pub struct GetProfileInputBuilder {
27 pub(crate) identifier: ::std::option::Option<::std::string::String>,
28}
29impl GetProfileInputBuilder {
30 pub fn identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
33 self.identifier = ::std::option::Option::Some(input.into());
34 self
35 }
36 pub fn set_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
38 self.identifier = input;
39 self
40 }
41 pub fn get_identifier(&self) -> &::std::option::Option<::std::string::String> {
43 &self.identifier
44 }
45 pub fn build(self) -> ::std::result::Result<crate::operation::get_profile::GetProfileInput, ::aws_smithy_types::error::operation::BuildError> {
47 ::std::result::Result::Ok(crate::operation::get_profile::GetProfileInput { identifier: self.identifier })
48 }
49}