AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EnableControlRequest.h
1
6#pragma once
7#include <aws/controltower/ControlTower_EXPORTS.h>
8#include <aws/controltower/ControlTowerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/controltower/model/EnabledControlParameter.h>
13#include <utility>
14
15namespace Aws
16{
17namespace ControlTower
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_CONTROLTOWER_API EnableControlRequest();
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 "EnableControl"; }
34
35 AWS_CONTROLTOWER_API Aws::String SerializePayload() const override;
36
37
39
46 inline const Aws::String& GetControlIdentifier() const{ return m_controlIdentifier; }
47 inline bool ControlIdentifierHasBeenSet() const { return m_controlIdentifierHasBeenSet; }
48 inline void SetControlIdentifier(const Aws::String& value) { m_controlIdentifierHasBeenSet = true; m_controlIdentifier = value; }
49 inline void SetControlIdentifier(Aws::String&& value) { m_controlIdentifierHasBeenSet = true; m_controlIdentifier = std::move(value); }
50 inline void SetControlIdentifier(const char* value) { m_controlIdentifierHasBeenSet = true; m_controlIdentifier.assign(value); }
51 inline EnableControlRequest& WithControlIdentifier(const Aws::String& value) { SetControlIdentifier(value); return *this;}
52 inline EnableControlRequest& WithControlIdentifier(Aws::String&& value) { SetControlIdentifier(std::move(value)); return *this;}
53 inline EnableControlRequest& WithControlIdentifier(const char* value) { SetControlIdentifier(value); return *this;}
55
57
61 inline const Aws::Vector<EnabledControlParameter>& GetParameters() const{ return m_parameters; }
62 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
63 inline void SetParameters(const Aws::Vector<EnabledControlParameter>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
64 inline void SetParameters(Aws::Vector<EnabledControlParameter>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
67 inline EnableControlRequest& AddParameters(const EnabledControlParameter& value) { m_parametersHasBeenSet = true; m_parameters.push_back(value); return *this; }
68 inline EnableControlRequest& AddParameters(EnabledControlParameter&& value) { m_parametersHasBeenSet = true; m_parameters.push_back(std::move(value)); return *this; }
70
72
75 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
76 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
77 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
78 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
79 inline EnableControlRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
80 inline EnableControlRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
81 inline EnableControlRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
82 inline EnableControlRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
83 inline EnableControlRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
84 inline EnableControlRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
85 inline EnableControlRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
86 inline EnableControlRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
87 inline EnableControlRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
89
91
97 inline const Aws::String& GetTargetIdentifier() const{ return m_targetIdentifier; }
98 inline bool TargetIdentifierHasBeenSet() const { return m_targetIdentifierHasBeenSet; }
99 inline void SetTargetIdentifier(const Aws::String& value) { m_targetIdentifierHasBeenSet = true; m_targetIdentifier = value; }
100 inline void SetTargetIdentifier(Aws::String&& value) { m_targetIdentifierHasBeenSet = true; m_targetIdentifier = std::move(value); }
101 inline void SetTargetIdentifier(const char* value) { m_targetIdentifierHasBeenSet = true; m_targetIdentifier.assign(value); }
102 inline EnableControlRequest& WithTargetIdentifier(const Aws::String& value) { SetTargetIdentifier(value); return *this;}
103 inline EnableControlRequest& WithTargetIdentifier(Aws::String&& value) { SetTargetIdentifier(std::move(value)); return *this;}
104 inline EnableControlRequest& WithTargetIdentifier(const char* value) { SetTargetIdentifier(value); return *this;}
106 private:
107
108 Aws::String m_controlIdentifier;
109 bool m_controlIdentifierHasBeenSet = false;
110
112 bool m_parametersHasBeenSet = false;
113
115 bool m_tagsHasBeenSet = false;
116
117 Aws::String m_targetIdentifier;
118 bool m_targetIdentifierHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace ControlTower
123} // namespace Aws
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
EnableControlRequest & AddTags(Aws::String &&key, const char *value)
EnableControlRequest & WithControlIdentifier(Aws::String &&value)
EnableControlRequest & WithParameters(Aws::Vector< EnabledControlParameter > &&value)
virtual const char * GetServiceRequestName() const override
EnableControlRequest & WithTargetIdentifier(Aws::String &&value)
const Aws::Vector< EnabledControlParameter > & GetParameters() const
EnableControlRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
EnableControlRequest & AddTags(const char *key, Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
EnableControlRequest & WithParameters(const Aws::Vector< EnabledControlParameter > &value)
AWS_CONTROLTOWER_API Aws::String SerializePayload() const override
EnableControlRequest & WithControlIdentifier(const char *value)
EnableControlRequest & WithTargetIdentifier(const Aws::String &value)
void SetControlIdentifier(const Aws::String &value)
EnableControlRequest & AddTags(const Aws::String &key, const Aws::String &value)
EnableControlRequest & AddTags(Aws::String &&key, Aws::String &&value)
void SetParameters(Aws::Vector< EnabledControlParameter > &&value)
void SetParameters(const Aws::Vector< EnabledControlParameter > &value)
EnableControlRequest & WithControlIdentifier(const Aws::String &value)
EnableControlRequest & AddTags(const char *key, const char *value)
EnableControlRequest & WithTargetIdentifier(const char *value)
EnableControlRequest & AddParameters(EnabledControlParameter &&value)
EnableControlRequest & AddTags(const Aws::String &key, Aws::String &&value)
EnableControlRequest & AddTags(Aws::String &&key, const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
EnableControlRequest & AddParameters(const EnabledControlParameter &value)
EnableControlRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &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