AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateDiscovererRequest.h
1
6#pragma once
7#include <aws/schemas/Schemas_EXPORTS.h>
8#include <aws/schemas/SchemasRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Schemas
16{
17namespace Model
18{
19
26 {
27 public:
28 AWS_SCHEMAS_API CreateDiscovererRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateDiscoverer"; }
35
36 AWS_SCHEMAS_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetDescription() const { return m_description; }
44 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
45 template<typename DescriptionT = Aws::String>
46 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
47 template<typename DescriptionT = Aws::String>
48 CreateDiscovererRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
50
52
55 inline const Aws::String& GetSourceArn() const { return m_sourceArn; }
56 inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
57 template<typename SourceArnT = Aws::String>
58 void SetSourceArn(SourceArnT&& value) { m_sourceArnHasBeenSet = true; m_sourceArn = std::forward<SourceArnT>(value); }
59 template<typename SourceArnT = Aws::String>
60 CreateDiscovererRequest& WithSourceArn(SourceArnT&& value) { SetSourceArn(std::forward<SourceArnT>(value)); return *this;}
62
64
68 inline bool GetCrossAccount() const { return m_crossAccount; }
69 inline bool CrossAccountHasBeenSet() const { return m_crossAccountHasBeenSet; }
70 inline void SetCrossAccount(bool value) { m_crossAccountHasBeenSet = true; m_crossAccount = value; }
71 inline CreateDiscovererRequest& WithCrossAccount(bool value) { SetCrossAccount(value); return *this;}
73
75
78 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
79 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
80 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
81 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
82 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
83 CreateDiscovererRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
84 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
85 CreateDiscovererRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
86 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
87 }
89 private:
90
91 Aws::String m_description;
92 bool m_descriptionHasBeenSet = false;
93
94 Aws::String m_sourceArn;
95 bool m_sourceArnHasBeenSet = false;
96
97 bool m_crossAccount{false};
98 bool m_crossAccountHasBeenSet = false;
99
101 bool m_tagsHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace Schemas
106} // namespace Aws
CreateDiscovererRequest & WithTags(TagsT &&value)
AWS_SCHEMAS_API Aws::String SerializePayload() const override
CreateDiscovererRequest & WithCrossAccount(bool value)
virtual const char * GetServiceRequestName() const override
AWS_SCHEMAS_API CreateDiscovererRequest()=default
CreateDiscovererRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateDiscovererRequest & WithSourceArn(SourceArnT &&value)
CreateDiscovererRequest & WithDescription(DescriptionT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String