AWS SDK for C++

AWS SDK for C++ Version 1.11.740

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
25 public:
26 AWS_GROUNDSTATION_API CreateConfigRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateConfig"; }
33
34 AWS_GROUNDSTATION_API Aws::String SerializePayload() const override;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
48 CreateConfigRequest& WithName(NameT&& value) {
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
58 inline const ConfigTypeData& GetConfigData() const { return m_configData; }
59 inline bool ConfigDataHasBeenSet() const { return m_configDataHasBeenSet; }
60 template <typename ConfigDataT = ConfigTypeData>
61 void SetConfigData(ConfigDataT&& value) {
62 m_configDataHasBeenSet = true;
63 m_configData = std::forward<ConfigDataT>(value);
64 }
65 template <typename ConfigDataT = ConfigTypeData>
66 CreateConfigRequest& WithConfigData(ConfigDataT&& value) {
67 SetConfigData(std::forward<ConfigDataT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
77 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
78 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
79 void SetTags(TagsT&& value) {
80 m_tagsHasBeenSet = true;
81 m_tags = std::forward<TagsT>(value);
82 }
83 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
84 CreateConfigRequest& WithTags(TagsT&& value) {
85 SetTags(std::forward<TagsT>(value));
86 return *this;
87 }
88 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
89 CreateConfigRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
90 m_tagsHasBeenSet = true;
91 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
92 return *this;
93 }
95 private:
96 Aws::String m_name;
97
98 ConfigTypeData m_configData;
99
101 bool m_nameHasBeenSet = false;
102 bool m_configDataHasBeenSet = false;
103 bool m_tagsHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace GroundStation
108} // 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