aws_sdk_transfer/operation/describe_agreement/
_describe_agreement_input.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeAgreementInput {
pub agreement_id: ::std::option::Option<::std::string::String>,
pub server_id: ::std::option::Option<::std::string::String>,
}
impl DescribeAgreementInput {
pub fn agreement_id(&self) -> ::std::option::Option<&str> {
self.agreement_id.as_deref()
}
pub fn server_id(&self) -> ::std::option::Option<&str> {
self.server_id.as_deref()
}
}
impl DescribeAgreementInput {
pub fn builder() -> crate::operation::describe_agreement::builders::DescribeAgreementInputBuilder {
crate::operation::describe_agreement::builders::DescribeAgreementInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeAgreementInputBuilder {
pub(crate) agreement_id: ::std::option::Option<::std::string::String>,
pub(crate) server_id: ::std::option::Option<::std::string::String>,
}
impl DescribeAgreementInputBuilder {
pub fn agreement_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.agreement_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_agreement_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.agreement_id = input;
self
}
pub fn get_agreement_id(&self) -> &::std::option::Option<::std::string::String> {
&self.agreement_id
}
pub fn server_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.server_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_server_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.server_id = input;
self
}
pub fn get_server_id(&self) -> &::std::option::Option<::std::string::String> {
&self.server_id
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::describe_agreement::DescribeAgreementInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::describe_agreement::DescribeAgreementInput {
agreement_id: self.agreement_id,
server_id: self.server_id,
})
}
}