/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace AppSync { namespace Model { /** *

Describes properties used to specify configurations related to a source * API.

See Also:

AWS * API Reference

*/ class SourceApiAssociationConfig { public: AWS_APPSYNC_API SourceApiAssociationConfig(); AWS_APPSYNC_API SourceApiAssociationConfig(Aws::Utils::Json::JsonView jsonValue); AWS_APPSYNC_API SourceApiAssociationConfig& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The property that indicates which merging option is enabled in the source API * association.

Valid merge types are MANUAL_MERGE (default) * and AUTO_MERGE. Manual merges are the default behavior and require * the user to trigger any changes from the source APIs to the merged API manually. * Auto merges subscribe the merged API to the changes performed on the source APIs * so that any change in the source APIs are also made to the merged API. Auto * merges use MergedApiExecutionRoleArn to perform merge * operations.

*/ inline const MergeType& GetMergeType() const{ return m_mergeType; } /** *

The property that indicates which merging option is enabled in the source API * association.

Valid merge types are MANUAL_MERGE (default) * and AUTO_MERGE. Manual merges are the default behavior and require * the user to trigger any changes from the source APIs to the merged API manually. * Auto merges subscribe the merged API to the changes performed on the source APIs * so that any change in the source APIs are also made to the merged API. Auto * merges use MergedApiExecutionRoleArn to perform merge * operations.

*/ inline bool MergeTypeHasBeenSet() const { return m_mergeTypeHasBeenSet; } /** *

The property that indicates which merging option is enabled in the source API * association.

Valid merge types are MANUAL_MERGE (default) * and AUTO_MERGE. Manual merges are the default behavior and require * the user to trigger any changes from the source APIs to the merged API manually. * Auto merges subscribe the merged API to the changes performed on the source APIs * so that any change in the source APIs are also made to the merged API. Auto * merges use MergedApiExecutionRoleArn to perform merge * operations.

*/ inline void SetMergeType(const MergeType& value) { m_mergeTypeHasBeenSet = true; m_mergeType = value; } /** *

The property that indicates which merging option is enabled in the source API * association.

Valid merge types are MANUAL_MERGE (default) * and AUTO_MERGE. Manual merges are the default behavior and require * the user to trigger any changes from the source APIs to the merged API manually. * Auto merges subscribe the merged API to the changes performed on the source APIs * so that any change in the source APIs are also made to the merged API. Auto * merges use MergedApiExecutionRoleArn to perform merge * operations.

*/ inline void SetMergeType(MergeType&& value) { m_mergeTypeHasBeenSet = true; m_mergeType = std::move(value); } /** *

The property that indicates which merging option is enabled in the source API * association.

Valid merge types are MANUAL_MERGE (default) * and AUTO_MERGE. Manual merges are the default behavior and require * the user to trigger any changes from the source APIs to the merged API manually. * Auto merges subscribe the merged API to the changes performed on the source APIs * so that any change in the source APIs are also made to the merged API. Auto * merges use MergedApiExecutionRoleArn to perform merge * operations.

*/ inline SourceApiAssociationConfig& WithMergeType(const MergeType& value) { SetMergeType(value); return *this;} /** *

The property that indicates which merging option is enabled in the source API * association.

Valid merge types are MANUAL_MERGE (default) * and AUTO_MERGE. Manual merges are the default behavior and require * the user to trigger any changes from the source APIs to the merged API manually. * Auto merges subscribe the merged API to the changes performed on the source APIs * so that any change in the source APIs are also made to the merged API. Auto * merges use MergedApiExecutionRoleArn to perform merge * operations.

*/ inline SourceApiAssociationConfig& WithMergeType(MergeType&& value) { SetMergeType(std::move(value)); return *this;} private: MergeType m_mergeType; bool m_mergeTypeHasBeenSet = false; }; } // namespace Model } // namespace AppSync } // namespace Aws