AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateDiscovererRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/schemas/SchemasRequest.h>
10#include <aws/schemas/Schemas_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Schemas {
16namespace Model {
17
24 public:
25 AWS_SCHEMAS_API CreateDiscovererRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateDiscoverer"; }
32
33 AWS_SCHEMAS_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetDescription() const { return m_description; }
40 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
41 template <typename DescriptionT = Aws::String>
42 void SetDescription(DescriptionT&& value) {
43 m_descriptionHasBeenSet = true;
44 m_description = std::forward<DescriptionT>(value);
45 }
46 template <typename DescriptionT = Aws::String>
48 SetDescription(std::forward<DescriptionT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetSourceArn() const { return m_sourceArn; }
58 inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
59 template <typename SourceArnT = Aws::String>
60 void SetSourceArn(SourceArnT&& value) {
61 m_sourceArnHasBeenSet = true;
62 m_sourceArn = std::forward<SourceArnT>(value);
63 }
64 template <typename SourceArnT = Aws::String>
66 SetSourceArn(std::forward<SourceArnT>(value));
67 return *this;
68 }
70
72
76 inline bool GetCrossAccount() const { return m_crossAccount; }
77 inline bool CrossAccountHasBeenSet() const { return m_crossAccountHasBeenSet; }
78 inline void SetCrossAccount(bool value) {
79 m_crossAccountHasBeenSet = true;
80 m_crossAccount = value;
81 }
83 SetCrossAccount(value);
84 return *this;
85 }
87
89
92 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
93 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
94 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
95 void SetTags(TagsT&& value) {
96 m_tagsHasBeenSet = true;
97 m_tags = std::forward<TagsT>(value);
98 }
99 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
101 SetTags(std::forward<TagsT>(value));
102 return *this;
103 }
104 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
105 CreateDiscovererRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
106 m_tagsHasBeenSet = true;
107 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
108 return *this;
109 }
111 private:
112 Aws::String m_description;
113
114 Aws::String m_sourceArn;
115
116 bool m_crossAccount{false};
117
119 bool m_descriptionHasBeenSet = false;
120 bool m_sourceArnHasBeenSet = false;
121 bool m_crossAccountHasBeenSet = false;
122 bool m_tagsHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace Schemas
127} // 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