aws_sdk_appsync/operation/get_source_api_association/_get_source_api_association_input.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct GetSourceApiAssociationInput {
6 /// <p>The identifier of the AppSync Merged API. This is generated by the AppSync service. In most cases, Merged APIs (especially in your account) only require the API ID value or ARN of the merged API. However, Merged APIs in other accounts (cross-account use cases) strictly require the full resource ARN of the merged API.</p>
7 pub merged_api_identifier: ::std::option::Option<::std::string::String>,
8 /// <p>The ID generated by the AppSync service for the source API association.</p>
9 pub association_id: ::std::option::Option<::std::string::String>,
10}
11impl GetSourceApiAssociationInput {
12 /// <p>The identifier of the AppSync Merged API. This is generated by the AppSync service. In most cases, Merged APIs (especially in your account) only require the API ID value or ARN of the merged API. However, Merged APIs in other accounts (cross-account use cases) strictly require the full resource ARN of the merged API.</p>
13 pub fn merged_api_identifier(&self) -> ::std::option::Option<&str> {
14 self.merged_api_identifier.as_deref()
15 }
16 /// <p>The ID generated by the AppSync service for the source API association.</p>
17 pub fn association_id(&self) -> ::std::option::Option<&str> {
18 self.association_id.as_deref()
19 }
20}
21impl GetSourceApiAssociationInput {
22 /// Creates a new builder-style object to manufacture [`GetSourceApiAssociationInput`](crate::operation::get_source_api_association::GetSourceApiAssociationInput).
23 pub fn builder() -> crate::operation::get_source_api_association::builders::GetSourceApiAssociationInputBuilder {
24 crate::operation::get_source_api_association::builders::GetSourceApiAssociationInputBuilder::default()
25 }
26}
27
28/// A builder for [`GetSourceApiAssociationInput`](crate::operation::get_source_api_association::GetSourceApiAssociationInput).
29#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
30#[non_exhaustive]
31pub struct GetSourceApiAssociationInputBuilder {
32 pub(crate) merged_api_identifier: ::std::option::Option<::std::string::String>,
33 pub(crate) association_id: ::std::option::Option<::std::string::String>,
34}
35impl GetSourceApiAssociationInputBuilder {
36 /// <p>The identifier of the AppSync Merged API. This is generated by the AppSync service. In most cases, Merged APIs (especially in your account) only require the API ID value or ARN of the merged API. However, Merged APIs in other accounts (cross-account use cases) strictly require the full resource ARN of the merged API.</p>
37 /// This field is required.
38 pub fn merged_api_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
39 self.merged_api_identifier = ::std::option::Option::Some(input.into());
40 self
41 }
42 /// <p>The identifier of the AppSync Merged API. This is generated by the AppSync service. In most cases, Merged APIs (especially in your account) only require the API ID value or ARN of the merged API. However, Merged APIs in other accounts (cross-account use cases) strictly require the full resource ARN of the merged API.</p>
43 pub fn set_merged_api_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
44 self.merged_api_identifier = input;
45 self
46 }
47 /// <p>The identifier of the AppSync Merged API. This is generated by the AppSync service. In most cases, Merged APIs (especially in your account) only require the API ID value or ARN of the merged API. However, Merged APIs in other accounts (cross-account use cases) strictly require the full resource ARN of the merged API.</p>
48 pub fn get_merged_api_identifier(&self) -> &::std::option::Option<::std::string::String> {
49 &self.merged_api_identifier
50 }
51 /// <p>The ID generated by the AppSync service for the source API association.</p>
52 /// This field is required.
53 pub fn association_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
54 self.association_id = ::std::option::Option::Some(input.into());
55 self
56 }
57 /// <p>The ID generated by the AppSync service for the source API association.</p>
58 pub fn set_association_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
59 self.association_id = input;
60 self
61 }
62 /// <p>The ID generated by the AppSync service for the source API association.</p>
63 pub fn get_association_id(&self) -> &::std::option::Option<::std::string::String> {
64 &self.association_id
65 }
66 /// Consumes the builder and constructs a [`GetSourceApiAssociationInput`](crate::operation::get_source_api_association::GetSourceApiAssociationInput).
67 pub fn build(
68 self,
69 ) -> ::std::result::Result<
70 crate::operation::get_source_api_association::GetSourceApiAssociationInput,
71 ::aws_smithy_types::error::operation::BuildError,
72 > {
73 ::std::result::Result::Ok(crate::operation::get_source_api_association::GetSourceApiAssociationInput {
74 merged_api_identifier: self.merged_api_identifier,
75 association_id: self.association_id,
76 })
77 }
78}