AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateConfigRequest.h
1
6#pragma once
7#include <aws/groundstation/GroundStation_EXPORTS.h>
8#include <aws/groundstation/GroundStationRequest.h>
9#include <aws/groundstation/model/ConfigTypeData.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace GroundStation
17{
18namespace Model
19{
20
27 {
28 public:
29 AWS_GROUNDSTATION_API CreateConfigRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateConfig"; }
36
37 AWS_GROUNDSTATION_API Aws::String SerializePayload() const override;
38
39
41
44 inline const ConfigTypeData& GetConfigData() const { return m_configData; }
45 inline bool ConfigDataHasBeenSet() const { return m_configDataHasBeenSet; }
46 template<typename ConfigDataT = ConfigTypeData>
47 void SetConfigData(ConfigDataT&& value) { m_configDataHasBeenSet = true; m_configData = std::forward<ConfigDataT>(value); }
48 template<typename ConfigDataT = ConfigTypeData>
49 CreateConfigRequest& WithConfigData(ConfigDataT&& value) { SetConfigData(std::forward<ConfigDataT>(value)); return *this;}
51
53
56 inline const Aws::String& GetName() const { return m_name; }
57 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 template<typename NameT = Aws::String>
59 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
60 template<typename NameT = Aws::String>
61 CreateConfigRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
63
65
68 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
69 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
70 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
71 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
72 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
73 CreateConfigRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
74 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
75 CreateConfigRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
76 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
77 }
79 private:
80
81 ConfigTypeData m_configData;
82 bool m_configDataHasBeenSet = false;
83
84 Aws::String m_name;
85 bool m_nameHasBeenSet = false;
86
88 bool m_tagsHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace GroundStation
93} // 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