AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
EnableBaselineRequest.h
1
6#pragma once
7#include <aws/controltower/ControlTowerRequest.h>
8#include <aws/controltower/ControlTower_EXPORTS.h>
9#include <aws/controltower/model/EnabledBaselineParameter.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 EnableBaselineRequest() = 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 "EnableBaseline"; }
31
32 AWS_CONTROLTOWER_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetBaselineVersion() const { return m_baselineVersion; }
39 inline bool BaselineVersionHasBeenSet() const { return m_baselineVersionHasBeenSet; }
40 template <typename BaselineVersionT = Aws::String>
41 void SetBaselineVersion(BaselineVersionT&& value) {
42 m_baselineVersionHasBeenSet = true;
43 m_baselineVersion = std::forward<BaselineVersionT>(value);
44 }
45 template <typename BaselineVersionT = Aws::String>
46 EnableBaselineRequest& WithBaselineVersion(BaselineVersionT&& value) {
47 SetBaselineVersion(std::forward<BaselineVersionT>(value));
48 return *this;
49 }
51
53
58 inline const Aws::Vector<EnabledBaselineParameter>& GetParameters() const { return m_parameters; }
59 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
60 template <typename ParametersT = Aws::Vector<EnabledBaselineParameter>>
61 void SetParameters(ParametersT&& value) {
62 m_parametersHasBeenSet = true;
63 m_parameters = std::forward<ParametersT>(value);
64 }
65 template <typename ParametersT = Aws::Vector<EnabledBaselineParameter>>
66 EnableBaselineRequest& WithParameters(ParametersT&& value) {
67 SetParameters(std::forward<ParametersT>(value));
68 return *this;
69 }
70 template <typename ParametersT = EnabledBaselineParameter>
71 EnableBaselineRequest& AddParameters(ParametersT&& value) {
72 m_parametersHasBeenSet = true;
73 m_parameters.emplace_back(std::forward<ParametersT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetBaselineIdentifier() const { return m_baselineIdentifier; }
83 inline bool BaselineIdentifierHasBeenSet() const { return m_baselineIdentifierHasBeenSet; }
84 template <typename BaselineIdentifierT = Aws::String>
85 void SetBaselineIdentifier(BaselineIdentifierT&& value) {
86 m_baselineIdentifierHasBeenSet = true;
87 m_baselineIdentifier = std::forward<BaselineIdentifierT>(value);
88 }
89 template <typename BaselineIdentifierT = Aws::String>
90 EnableBaselineRequest& WithBaselineIdentifier(BaselineIdentifierT&& value) {
91 SetBaselineIdentifier(std::forward<BaselineIdentifierT>(value));
92 return *this;
93 }
95
97
101 inline const Aws::String& GetTargetIdentifier() const { return m_targetIdentifier; }
102 inline bool TargetIdentifierHasBeenSet() const { return m_targetIdentifierHasBeenSet; }
103 template <typename TargetIdentifierT = Aws::String>
104 void SetTargetIdentifier(TargetIdentifierT&& value) {
105 m_targetIdentifierHasBeenSet = true;
106 m_targetIdentifier = std::forward<TargetIdentifierT>(value);
107 }
108 template <typename TargetIdentifierT = Aws::String>
109 EnableBaselineRequest& WithTargetIdentifier(TargetIdentifierT&& value) {
110 SetTargetIdentifier(std::forward<TargetIdentifierT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
120 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
121 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
122 void SetTags(TagsT&& value) {
123 m_tagsHasBeenSet = true;
124 m_tags = std::forward<TagsT>(value);
125 }
126 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
128 SetTags(std::forward<TagsT>(value));
129 return *this;
130 }
131 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
132 EnableBaselineRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
133 m_tagsHasBeenSet = true;
134 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
135 return *this;
136 }
138 private:
139 Aws::String m_baselineVersion;
140
142
143 Aws::String m_baselineIdentifier;
144
145 Aws::String m_targetIdentifier;
146
148 bool m_baselineVersionHasBeenSet = false;
149 bool m_parametersHasBeenSet = false;
150 bool m_baselineIdentifierHasBeenSet = false;
151 bool m_targetIdentifierHasBeenSet = false;
152 bool m_tagsHasBeenSet = false;
153};
154
155} // namespace Model
156} // namespace ControlTower
157} // namespace Aws
void SetBaselineIdentifier(BaselineIdentifierT &&value)
const Aws::Vector< EnabledBaselineParameter > & GetParameters() const
EnableBaselineRequest & WithParameters(ParametersT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
EnableBaselineRequest & WithBaselineVersion(BaselineVersionT &&value)
virtual const char * GetServiceRequestName() const override
EnableBaselineRequest & WithBaselineIdentifier(BaselineIdentifierT &&value)
EnableBaselineRequest & WithTargetIdentifier(TargetIdentifierT &&value)
AWS_CONTROLTOWER_API EnableBaselineRequest()=default
EnableBaselineRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
EnableBaselineRequest & AddParameters(ParametersT &&value)
AWS_CONTROLTOWER_API Aws::String SerializePayload() const override
EnableBaselineRequest & 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
std::vector< T, Aws::Allocator< T > > Vector