/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes the configuration of a source API. A source API is a GraphQL API
* that is linked to a merged API. There can be multiple source APIs attached to
* each merged API. When linked to a merged API, the source API's schema, data
* sources, and resolvers will be combined with other linked source API data to
* form a new, singular API. Source APIs can originate from your account or
* from other accounts via Amazon Web Services Resource Access Manager. For more
* information about sharing resources from other accounts, see What is
* Amazon Web Services Resource Access Manager? in the Amazon Web Services
* Resource Access Manager guide.See Also:
AWS
* API Reference
The ID generated by the AppSync service for the source API association.
*/ inline const Aws::String& GetAssociationId() const{ return m_associationId; } /** *The ID generated by the AppSync service for the source API association.
*/ inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; } /** *The ID generated by the AppSync service for the source API association.
*/ inline void SetAssociationId(const Aws::String& value) { m_associationIdHasBeenSet = true; m_associationId = value; } /** *The ID generated by the AppSync service for the source API association.
*/ inline void SetAssociationId(Aws::String&& value) { m_associationIdHasBeenSet = true; m_associationId = std::move(value); } /** *The ID generated by the AppSync service for the source API association.
*/ inline void SetAssociationId(const char* value) { m_associationIdHasBeenSet = true; m_associationId.assign(value); } /** *The ID generated by the AppSync service for the source API association.
*/ inline SourceApiAssociation& WithAssociationId(const Aws::String& value) { SetAssociationId(value); return *this;} /** *The ID generated by the AppSync service for the source API association.
*/ inline SourceApiAssociation& WithAssociationId(Aws::String&& value) { SetAssociationId(std::move(value)); return *this;} /** *The ID generated by the AppSync service for the source API association.
*/ inline SourceApiAssociation& WithAssociationId(const char* value) { SetAssociationId(value); return *this;} /** *The Amazon Resource Name (ARN) of the source API association.
*/ inline const Aws::String& GetAssociationArn() const{ return m_associationArn; } /** *The Amazon Resource Name (ARN) of the source API association.
*/ inline bool AssociationArnHasBeenSet() const { return m_associationArnHasBeenSet; } /** *The Amazon Resource Name (ARN) of the source API association.
*/ inline void SetAssociationArn(const Aws::String& value) { m_associationArnHasBeenSet = true; m_associationArn = value; } /** *The Amazon Resource Name (ARN) of the source API association.
*/ inline void SetAssociationArn(Aws::String&& value) { m_associationArnHasBeenSet = true; m_associationArn = std::move(value); } /** *The Amazon Resource Name (ARN) of the source API association.
*/ inline void SetAssociationArn(const char* value) { m_associationArnHasBeenSet = true; m_associationArn.assign(value); } /** *The Amazon Resource Name (ARN) of the source API association.
*/ inline SourceApiAssociation& WithAssociationArn(const Aws::String& value) { SetAssociationArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the source API association.
*/ inline SourceApiAssociation& WithAssociationArn(Aws::String&& value) { SetAssociationArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the source API association.
*/ inline SourceApiAssociation& WithAssociationArn(const char* value) { SetAssociationArn(value); return *this;} /** *The ID of the AppSync source API.
*/ inline const Aws::String& GetSourceApiId() const{ return m_sourceApiId; } /** *The ID of the AppSync source API.
*/ inline bool SourceApiIdHasBeenSet() const { return m_sourceApiIdHasBeenSet; } /** *The ID of the AppSync source API.
*/ inline void SetSourceApiId(const Aws::String& value) { m_sourceApiIdHasBeenSet = true; m_sourceApiId = value; } /** *The ID of the AppSync source API.
*/ inline void SetSourceApiId(Aws::String&& value) { m_sourceApiIdHasBeenSet = true; m_sourceApiId = std::move(value); } /** *The ID of the AppSync source API.
*/ inline void SetSourceApiId(const char* value) { m_sourceApiIdHasBeenSet = true; m_sourceApiId.assign(value); } /** *The ID of the AppSync source API.
*/ inline SourceApiAssociation& WithSourceApiId(const Aws::String& value) { SetSourceApiId(value); return *this;} /** *The ID of the AppSync source API.
*/ inline SourceApiAssociation& WithSourceApiId(Aws::String&& value) { SetSourceApiId(std::move(value)); return *this;} /** *The ID of the AppSync source API.
*/ inline SourceApiAssociation& WithSourceApiId(const char* value) { SetSourceApiId(value); return *this;} /** *The Amazon Resource Name (ARN) of the AppSync source API.
*/ inline const Aws::String& GetSourceApiArn() const{ return m_sourceApiArn; } /** *The Amazon Resource Name (ARN) of the AppSync source API.
*/ inline bool SourceApiArnHasBeenSet() const { return m_sourceApiArnHasBeenSet; } /** *The Amazon Resource Name (ARN) of the AppSync source API.
*/ inline void SetSourceApiArn(const Aws::String& value) { m_sourceApiArnHasBeenSet = true; m_sourceApiArn = value; } /** *The Amazon Resource Name (ARN) of the AppSync source API.
*/ inline void SetSourceApiArn(Aws::String&& value) { m_sourceApiArnHasBeenSet = true; m_sourceApiArn = std::move(value); } /** *The Amazon Resource Name (ARN) of the AppSync source API.
*/ inline void SetSourceApiArn(const char* value) { m_sourceApiArnHasBeenSet = true; m_sourceApiArn.assign(value); } /** *The Amazon Resource Name (ARN) of the AppSync source API.
*/ inline SourceApiAssociation& WithSourceApiArn(const Aws::String& value) { SetSourceApiArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the AppSync source API.
*/ inline SourceApiAssociation& WithSourceApiArn(Aws::String&& value) { SetSourceApiArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the AppSync source API.
*/ inline SourceApiAssociation& WithSourceApiArn(const char* value) { SetSourceApiArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the AppSync Merged API.
*/ inline const Aws::String& GetMergedApiArn() const{ return m_mergedApiArn; } /** *The Amazon Resource Name (ARN) of the AppSync Merged API.
*/ inline bool MergedApiArnHasBeenSet() const { return m_mergedApiArnHasBeenSet; } /** *The Amazon Resource Name (ARN) of the AppSync Merged API.
*/ inline void SetMergedApiArn(const Aws::String& value) { m_mergedApiArnHasBeenSet = true; m_mergedApiArn = value; } /** *The Amazon Resource Name (ARN) of the AppSync Merged API.
*/ inline void SetMergedApiArn(Aws::String&& value) { m_mergedApiArnHasBeenSet = true; m_mergedApiArn = std::move(value); } /** *The Amazon Resource Name (ARN) of the AppSync Merged API.
*/ inline void SetMergedApiArn(const char* value) { m_mergedApiArnHasBeenSet = true; m_mergedApiArn.assign(value); } /** *The Amazon Resource Name (ARN) of the AppSync Merged API.
*/ inline SourceApiAssociation& WithMergedApiArn(const Aws::String& value) { SetMergedApiArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the AppSync Merged API.
*/ inline SourceApiAssociation& WithMergedApiArn(Aws::String&& value) { SetMergedApiArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the AppSync Merged API.
*/ inline SourceApiAssociation& WithMergedApiArn(const char* value) { SetMergedApiArn(value); return *this;} /** *The ID of the AppSync Merged API.
*/ inline const Aws::String& GetMergedApiId() const{ return m_mergedApiId; } /** *The ID of the AppSync Merged API.
*/ inline bool MergedApiIdHasBeenSet() const { return m_mergedApiIdHasBeenSet; } /** *The ID of the AppSync Merged API.
*/ inline void SetMergedApiId(const Aws::String& value) { m_mergedApiIdHasBeenSet = true; m_mergedApiId = value; } /** *The ID of the AppSync Merged API.
*/ inline void SetMergedApiId(Aws::String&& value) { m_mergedApiIdHasBeenSet = true; m_mergedApiId = std::move(value); } /** *The ID of the AppSync Merged API.
*/ inline void SetMergedApiId(const char* value) { m_mergedApiIdHasBeenSet = true; m_mergedApiId.assign(value); } /** *The ID of the AppSync Merged API.
*/ inline SourceApiAssociation& WithMergedApiId(const Aws::String& value) { SetMergedApiId(value); return *this;} /** *The ID of the AppSync Merged API.
*/ inline SourceApiAssociation& WithMergedApiId(Aws::String&& value) { SetMergedApiId(std::move(value)); return *this;} /** *The ID of the AppSync Merged API.
*/ inline SourceApiAssociation& WithMergedApiId(const char* value) { SetMergedApiId(value); return *this;} /** *The description field.
*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *The description field.
*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *The description field.
*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *The description field.
*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *The description field.
*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *The description field.
*/ inline SourceApiAssociation& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *The description field.
*/ inline SourceApiAssociation& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *The description field.
*/ inline SourceApiAssociation& WithDescription(const char* value) { SetDescription(value); return *this;} /** *The SourceApiAssociationConfig
object data.
The SourceApiAssociationConfig
object data.
The SourceApiAssociationConfig
object data.
The SourceApiAssociationConfig
object data.
The SourceApiAssociationConfig
object data.
The SourceApiAssociationConfig
object data.
The state of the source API association.
*/ inline const SourceApiAssociationStatus& GetSourceApiAssociationStatus() const{ return m_sourceApiAssociationStatus; } /** *The state of the source API association.
*/ inline bool SourceApiAssociationStatusHasBeenSet() const { return m_sourceApiAssociationStatusHasBeenSet; } /** *The state of the source API association.
*/ inline void SetSourceApiAssociationStatus(const SourceApiAssociationStatus& value) { m_sourceApiAssociationStatusHasBeenSet = true; m_sourceApiAssociationStatus = value; } /** *The state of the source API association.
*/ inline void SetSourceApiAssociationStatus(SourceApiAssociationStatus&& value) { m_sourceApiAssociationStatusHasBeenSet = true; m_sourceApiAssociationStatus = std::move(value); } /** *The state of the source API association.
*/ inline SourceApiAssociation& WithSourceApiAssociationStatus(const SourceApiAssociationStatus& value) { SetSourceApiAssociationStatus(value); return *this;} /** *The state of the source API association.
*/ inline SourceApiAssociation& WithSourceApiAssociationStatus(SourceApiAssociationStatus&& value) { SetSourceApiAssociationStatus(std::move(value)); return *this;} /** *The detailed message related to the current state of the source API * association.
*/ inline const Aws::String& GetSourceApiAssociationStatusDetail() const{ return m_sourceApiAssociationStatusDetail; } /** *The detailed message related to the current state of the source API * association.
*/ inline bool SourceApiAssociationStatusDetailHasBeenSet() const { return m_sourceApiAssociationStatusDetailHasBeenSet; } /** *The detailed message related to the current state of the source API * association.
*/ inline void SetSourceApiAssociationStatusDetail(const Aws::String& value) { m_sourceApiAssociationStatusDetailHasBeenSet = true; m_sourceApiAssociationStatusDetail = value; } /** *The detailed message related to the current state of the source API * association.
*/ inline void SetSourceApiAssociationStatusDetail(Aws::String&& value) { m_sourceApiAssociationStatusDetailHasBeenSet = true; m_sourceApiAssociationStatusDetail = std::move(value); } /** *The detailed message related to the current state of the source API * association.
*/ inline void SetSourceApiAssociationStatusDetail(const char* value) { m_sourceApiAssociationStatusDetailHasBeenSet = true; m_sourceApiAssociationStatusDetail.assign(value); } /** *The detailed message related to the current state of the source API * association.
*/ inline SourceApiAssociation& WithSourceApiAssociationStatusDetail(const Aws::String& value) { SetSourceApiAssociationStatusDetail(value); return *this;} /** *The detailed message related to the current state of the source API * association.
*/ inline SourceApiAssociation& WithSourceApiAssociationStatusDetail(Aws::String&& value) { SetSourceApiAssociationStatusDetail(std::move(value)); return *this;} /** *The detailed message related to the current state of the source API * association.
*/ inline SourceApiAssociation& WithSourceApiAssociationStatusDetail(const char* value) { SetSourceApiAssociationStatusDetail(value); return *this;} /** *The datetime value of the last successful merge of the source API * association. The result will be in UTC format and your local time zone.
*/ inline const Aws::Utils::DateTime& GetLastSuccessfulMergeDate() const{ return m_lastSuccessfulMergeDate; } /** *The datetime value of the last successful merge of the source API * association. The result will be in UTC format and your local time zone.
*/ inline bool LastSuccessfulMergeDateHasBeenSet() const { return m_lastSuccessfulMergeDateHasBeenSet; } /** *The datetime value of the last successful merge of the source API * association. The result will be in UTC format and your local time zone.
*/ inline void SetLastSuccessfulMergeDate(const Aws::Utils::DateTime& value) { m_lastSuccessfulMergeDateHasBeenSet = true; m_lastSuccessfulMergeDate = value; } /** *The datetime value of the last successful merge of the source API * association. The result will be in UTC format and your local time zone.
*/ inline void SetLastSuccessfulMergeDate(Aws::Utils::DateTime&& value) { m_lastSuccessfulMergeDateHasBeenSet = true; m_lastSuccessfulMergeDate = std::move(value); } /** *The datetime value of the last successful merge of the source API * association. The result will be in UTC format and your local time zone.
*/ inline SourceApiAssociation& WithLastSuccessfulMergeDate(const Aws::Utils::DateTime& value) { SetLastSuccessfulMergeDate(value); return *this;} /** *The datetime value of the last successful merge of the source API * association. The result will be in UTC format and your local time zone.
*/ inline SourceApiAssociation& WithLastSuccessfulMergeDate(Aws::Utils::DateTime&& value) { SetLastSuccessfulMergeDate(std::move(value)); return *this;} private: Aws::String m_associationId; bool m_associationIdHasBeenSet = false; Aws::String m_associationArn; bool m_associationArnHasBeenSet = false; Aws::String m_sourceApiId; bool m_sourceApiIdHasBeenSet = false; Aws::String m_sourceApiArn; bool m_sourceApiArnHasBeenSet = false; Aws::String m_mergedApiArn; bool m_mergedApiArnHasBeenSet = false; Aws::String m_mergedApiId; bool m_mergedApiIdHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; SourceApiAssociationConfig m_sourceApiAssociationConfig; bool m_sourceApiAssociationConfigHasBeenSet = false; SourceApiAssociationStatus m_sourceApiAssociationStatus; bool m_sourceApiAssociationStatusHasBeenSet = false; Aws::String m_sourceApiAssociationStatusDetail; bool m_sourceApiAssociationStatusDetailHasBeenSet = false; Aws::Utils::DateTime m_lastSuccessfulMergeDate; bool m_lastSuccessfulMergeDateHasBeenSet = false; }; } // namespace Model } // namespace AppSync } // namespace Aws