/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Schemas { namespace Model { /** *

See Also:

AWS * API Reference

*/ class CreateDiscovererRequest : public SchemasRequest { public: AWS_SCHEMAS_API CreateDiscovererRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateDiscoverer"; } AWS_SCHEMAS_API Aws::String SerializePayload() const override; /** *

A description for the discoverer.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A description for the discoverer.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A description for the discoverer.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A description for the discoverer.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A description for the discoverer.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A description for the discoverer.

*/ inline CreateDiscovererRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description for the discoverer.

*/ inline CreateDiscovererRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A description for the discoverer.

*/ inline CreateDiscovererRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The ARN of the event bus.

*/ inline const Aws::String& GetSourceArn() const{ return m_sourceArn; } /** *

The ARN of the event bus.

*/ inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; } /** *

The ARN of the event bus.

*/ inline void SetSourceArn(const Aws::String& value) { m_sourceArnHasBeenSet = true; m_sourceArn = value; } /** *

The ARN of the event bus.

*/ inline void SetSourceArn(Aws::String&& value) { m_sourceArnHasBeenSet = true; m_sourceArn = std::move(value); } /** *

The ARN of the event bus.

*/ inline void SetSourceArn(const char* value) { m_sourceArnHasBeenSet = true; m_sourceArn.assign(value); } /** *

The ARN of the event bus.

*/ inline CreateDiscovererRequest& WithSourceArn(const Aws::String& value) { SetSourceArn(value); return *this;} /** *

The ARN of the event bus.

*/ inline CreateDiscovererRequest& WithSourceArn(Aws::String&& value) { SetSourceArn(std::move(value)); return *this;} /** *

The ARN of the event bus.

*/ inline CreateDiscovererRequest& WithSourceArn(const char* value) { SetSourceArn(value); return *this;} /** *

Support discovery of schemas in events sent to the bus from another account. * (default: true).

*/ inline bool GetCrossAccount() const{ return m_crossAccount; } /** *

Support discovery of schemas in events sent to the bus from another account. * (default: true).

*/ inline bool CrossAccountHasBeenSet() const { return m_crossAccountHasBeenSet; } /** *

Support discovery of schemas in events sent to the bus from another account. * (default: true).

*/ inline void SetCrossAccount(bool value) { m_crossAccountHasBeenSet = true; m_crossAccount = value; } /** *

Support discovery of schemas in events sent to the bus from another account. * (default: true).

*/ inline CreateDiscovererRequest& WithCrossAccount(bool value) { SetCrossAccount(value); return *this;} /** *

Tags associated with the resource.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

Tags associated with the resource.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

Tags associated with the resource.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

Tags associated with the resource.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

Tags associated with the resource.

*/ inline CreateDiscovererRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

Tags associated with the resource.

*/ inline CreateDiscovererRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

Tags associated with the resource.

*/ inline CreateDiscovererRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

Tags associated with the resource.

*/ inline CreateDiscovererRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

Tags associated with the resource.

*/ inline CreateDiscovererRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

Tags associated with the resource.

*/ inline CreateDiscovererRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

Tags associated with the resource.

*/ inline CreateDiscovererRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

Tags associated with the resource.

*/ inline CreateDiscovererRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

Tags associated with the resource.

*/ inline CreateDiscovererRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_sourceArn; bool m_sourceArnHasBeenSet = false; bool m_crossAccount; bool m_crossAccountHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace Schemas } // namespace Aws