AWS SDK for C++

AWS SDK for C++ Version 1.11.796

Loading...
Searching...
No Matches
CreateConfigRequest.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/groundstation/GroundStationRequest.h>
10#include <aws/groundstation/GroundStation_EXPORTS.h>
11#include <aws/groundstation/model/ConfigTypeData.h>
12
13#include <utility>
14
15namespace Aws {
16namespace GroundStation {
17namespace Model {
18
26 public:
27 AWS_GROUNDSTATION_API CreateConfigRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateConfig"; }
34
35 AWS_GROUNDSTATION_API Aws::String SerializePayload() const override;
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
49 CreateConfigRequest& WithName(NameT&& value) {
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
59 inline const ConfigTypeData& GetConfigData() const { return m_configData; }
60 inline bool ConfigDataHasBeenSet() const { return m_configDataHasBeenSet; }
61 template <typename ConfigDataT = ConfigTypeData>
62 void SetConfigData(ConfigDataT&& value) {
63 m_configDataHasBeenSet = true;
64 m_configData = std::forward<ConfigDataT>(value);
65 }
66 template <typename ConfigDataT = ConfigTypeData>
67 CreateConfigRequest& WithConfigData(ConfigDataT&& value) {
68 SetConfigData(std::forward<ConfigDataT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
78 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
79 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
80 void SetTags(TagsT&& value) {
81 m_tagsHasBeenSet = true;
82 m_tags = std::forward<TagsT>(value);
83 }
84 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
85 CreateConfigRequest& WithTags(TagsT&& value) {
86 SetTags(std::forward<TagsT>(value));
87 return *this;
88 }
89 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
90 CreateConfigRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
91 m_tagsHasBeenSet = true;
92 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
93 return *this;
94 }
96 private:
97 Aws::String m_name;
98
99 ConfigTypeData m_configData;
100
102 bool m_nameHasBeenSet = false;
103 bool m_configDataHasBeenSet = false;
104 bool m_tagsHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace GroundStation
109} // namespace Aws
CreateConfigRequest & WithName(NameT &&value)
CreateConfigRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
virtual const char * GetServiceRequestName() const override
AWS_GROUNDSTATION_API CreateConfigRequest()=default
AWS_GROUNDSTATION_API Aws::String SerializePayload() const override
CreateConfigRequest & WithConfigData(ConfigDataT &&value)
CreateConfigRequest & WithTags(TagsT &&value)
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