AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
EnableControlRequest.h
1
6#pragma once
7#include <aws/controltower/ControlTowerRequest.h>
8#include <aws/controltower/ControlTower_EXPORTS.h>
9#include <aws/controltower/model/EnabledControlParameter.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace ControlTower {
18namespace Model {
19
23 public:
24 AWS_CONTROLTOWER_API EnableControlRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "EnableControl"; }
31
32 AWS_CONTROLTOWER_API Aws::String SerializePayload() const override;
33
35
42 inline const Aws::String& GetControlIdentifier() const { return m_controlIdentifier; }
43 inline bool ControlIdentifierHasBeenSet() const { return m_controlIdentifierHasBeenSet; }
44 template <typename ControlIdentifierT = Aws::String>
45 void SetControlIdentifier(ControlIdentifierT&& value) {
46 m_controlIdentifierHasBeenSet = true;
47 m_controlIdentifier = std::forward<ControlIdentifierT>(value);
48 }
49 template <typename ControlIdentifierT = Aws::String>
50 EnableControlRequest& WithControlIdentifier(ControlIdentifierT&& value) {
51 SetControlIdentifier(std::forward<ControlIdentifierT>(value));
52 return *this;
53 }
55
57
63 inline const Aws::String& GetTargetIdentifier() const { return m_targetIdentifier; }
64 inline bool TargetIdentifierHasBeenSet() const { return m_targetIdentifierHasBeenSet; }
65 template <typename TargetIdentifierT = Aws::String>
66 void SetTargetIdentifier(TargetIdentifierT&& value) {
67 m_targetIdentifierHasBeenSet = true;
68 m_targetIdentifier = std::forward<TargetIdentifierT>(value);
69 }
70 template <typename TargetIdentifierT = Aws::String>
71 EnableControlRequest& WithTargetIdentifier(TargetIdentifierT&& value) {
72 SetTargetIdentifier(std::forward<TargetIdentifierT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
82 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
83 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
84 void SetTags(TagsT&& value) {
85 m_tagsHasBeenSet = true;
86 m_tags = std::forward<TagsT>(value);
87 }
88 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
90 SetTags(std::forward<TagsT>(value));
91 return *this;
92 }
93 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
94 EnableControlRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
95 m_tagsHasBeenSet = true;
96 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
97 return *this;
98 }
100
102
106 inline const Aws::Vector<EnabledControlParameter>& GetParameters() const { return m_parameters; }
107 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
108 template <typename ParametersT = Aws::Vector<EnabledControlParameter>>
109 void SetParameters(ParametersT&& value) {
110 m_parametersHasBeenSet = true;
111 m_parameters = std::forward<ParametersT>(value);
112 }
113 template <typename ParametersT = Aws::Vector<EnabledControlParameter>>
114 EnableControlRequest& WithParameters(ParametersT&& value) {
115 SetParameters(std::forward<ParametersT>(value));
116 return *this;
117 }
118 template <typename ParametersT = EnabledControlParameter>
119 EnableControlRequest& AddParameters(ParametersT&& value) {
120 m_parametersHasBeenSet = true;
121 m_parameters.emplace_back(std::forward<ParametersT>(value));
122 return *this;
123 }
125 private:
126 Aws::String m_controlIdentifier;
127
128 Aws::String m_targetIdentifier;
129
131
133 bool m_controlIdentifierHasBeenSet = false;
134 bool m_targetIdentifierHasBeenSet = false;
135 bool m_tagsHasBeenSet = false;
136 bool m_parametersHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace ControlTower
141} // namespace Aws
virtual const char * GetServiceRequestName() const override
const Aws::Vector< EnabledControlParameter > & GetParameters() const
AWS_CONTROLTOWER_API Aws::String SerializePayload() const override
EnableControlRequest & WithParameters(ParametersT &&value)
EnableControlRequest & WithTargetIdentifier(TargetIdentifierT &&value)
EnableControlRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
EnableControlRequest & WithControlIdentifier(ControlIdentifierT &&value)
AWS_CONTROLTOWER_API EnableControlRequest()=default
EnableControlRequest & AddParameters(ParametersT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
EnableControlRequest & WithTags(TagsT &&value)
void SetControlIdentifier(ControlIdentifierT &&value)
void SetTargetIdentifier(TargetIdentifierT &&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
std::vector< T, Aws::Allocator< T > > Vector