#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetIntrospectionSchemaInput {
pub api_id: ::std::option::Option<::std::string::String>,
pub format: ::std::option::Option<crate::types::OutputType>,
pub include_directives: ::std::option::Option<bool>,
}
impl GetIntrospectionSchemaInput {
pub fn api_id(&self) -> ::std::option::Option<&str> {
self.api_id.as_deref()
}
pub fn format(&self) -> ::std::option::Option<&crate::types::OutputType> {
self.format.as_ref()
}
pub fn include_directives(&self) -> ::std::option::Option<bool> {
self.include_directives
}
}
impl GetIntrospectionSchemaInput {
pub fn builder() -> crate::operation::get_introspection_schema::builders::GetIntrospectionSchemaInputBuilder {
crate::operation::get_introspection_schema::builders::GetIntrospectionSchemaInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetIntrospectionSchemaInputBuilder {
pub(crate) api_id: ::std::option::Option<::std::string::String>,
pub(crate) format: ::std::option::Option<crate::types::OutputType>,
pub(crate) include_directives: ::std::option::Option<bool>,
}
impl GetIntrospectionSchemaInputBuilder {
pub fn api_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.api_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_api_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.api_id = input;
self
}
pub fn get_api_id(&self) -> &::std::option::Option<::std::string::String> {
&self.api_id
}
pub fn format(mut self, input: crate::types::OutputType) -> Self {
self.format = ::std::option::Option::Some(input);
self
}
pub fn set_format(mut self, input: ::std::option::Option<crate::types::OutputType>) -> Self {
self.format = input;
self
}
pub fn get_format(&self) -> &::std::option::Option<crate::types::OutputType> {
&self.format
}
pub fn include_directives(mut self, input: bool) -> Self {
self.include_directives = ::std::option::Option::Some(input);
self
}
pub fn set_include_directives(mut self, input: ::std::option::Option<bool>) -> Self {
self.include_directives = input;
self
}
pub fn get_include_directives(&self) -> &::std::option::Option<bool> {
&self.include_directives
}
pub fn build(
self,
) -> ::std::result::Result<
crate::operation::get_introspection_schema::GetIntrospectionSchemaInput,
::aws_smithy_types::error::operation::BuildError,
> {
::std::result::Result::Ok(crate::operation::get_introspection_schema::GetIntrospectionSchemaInput {
api_id: self.api_id,
format: self.format,
include_directives: self.include_directives,
})
}
}