AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EnableBaselineRequest.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/EnabledBaselineParameter.h>
13#include <utility>
14
15namespace Aws
16{
17namespace ControlTower
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_CONTROLTOWER_API EnableBaselineRequest();
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 "EnableBaseline"; }
34
35 AWS_CONTROLTOWER_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetBaselineIdentifier() const{ return m_baselineIdentifier; }
43 inline bool BaselineIdentifierHasBeenSet() const { return m_baselineIdentifierHasBeenSet; }
44 inline void SetBaselineIdentifier(const Aws::String& value) { m_baselineIdentifierHasBeenSet = true; m_baselineIdentifier = value; }
45 inline void SetBaselineIdentifier(Aws::String&& value) { m_baselineIdentifierHasBeenSet = true; m_baselineIdentifier = std::move(value); }
46 inline void SetBaselineIdentifier(const char* value) { m_baselineIdentifierHasBeenSet = true; m_baselineIdentifier.assign(value); }
48 inline EnableBaselineRequest& WithBaselineIdentifier(Aws::String&& value) { SetBaselineIdentifier(std::move(value)); return *this;}
49 inline EnableBaselineRequest& WithBaselineIdentifier(const char* value) { SetBaselineIdentifier(value); return *this;}
51
53
56 inline const Aws::String& GetBaselineVersion() const{ return m_baselineVersion; }
57 inline bool BaselineVersionHasBeenSet() const { return m_baselineVersionHasBeenSet; }
58 inline void SetBaselineVersion(const Aws::String& value) { m_baselineVersionHasBeenSet = true; m_baselineVersion = value; }
59 inline void SetBaselineVersion(Aws::String&& value) { m_baselineVersionHasBeenSet = true; m_baselineVersion = std::move(value); }
60 inline void SetBaselineVersion(const char* value) { m_baselineVersionHasBeenSet = true; m_baselineVersion.assign(value); }
61 inline EnableBaselineRequest& WithBaselineVersion(const Aws::String& value) { SetBaselineVersion(value); return *this;}
62 inline EnableBaselineRequest& WithBaselineVersion(Aws::String&& value) { SetBaselineVersion(std::move(value)); return *this;}
63 inline EnableBaselineRequest& WithBaselineVersion(const char* value) { SetBaselineVersion(value); return *this;}
65
67
72 inline const Aws::Vector<EnabledBaselineParameter>& GetParameters() const{ return m_parameters; }
73 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
74 inline void SetParameters(const Aws::Vector<EnabledBaselineParameter>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
75 inline void SetParameters(Aws::Vector<EnabledBaselineParameter>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
78 inline EnableBaselineRequest& AddParameters(const EnabledBaselineParameter& value) { m_parametersHasBeenSet = true; m_parameters.push_back(value); return *this; }
79 inline EnableBaselineRequest& AddParameters(EnabledBaselineParameter&& value) { m_parametersHasBeenSet = true; m_parameters.push_back(std::move(value)); return *this; }
81
83
86 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
87 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
88 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
89 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
90 inline EnableBaselineRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
91 inline EnableBaselineRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
92 inline EnableBaselineRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
93 inline EnableBaselineRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
94 inline EnableBaselineRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
95 inline EnableBaselineRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
96 inline EnableBaselineRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
97 inline EnableBaselineRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
98 inline EnableBaselineRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
100
102
106 inline const Aws::String& GetTargetIdentifier() const{ return m_targetIdentifier; }
107 inline bool TargetIdentifierHasBeenSet() const { return m_targetIdentifierHasBeenSet; }
108 inline void SetTargetIdentifier(const Aws::String& value) { m_targetIdentifierHasBeenSet = true; m_targetIdentifier = value; }
109 inline void SetTargetIdentifier(Aws::String&& value) { m_targetIdentifierHasBeenSet = true; m_targetIdentifier = std::move(value); }
110 inline void SetTargetIdentifier(const char* value) { m_targetIdentifierHasBeenSet = true; m_targetIdentifier.assign(value); }
111 inline EnableBaselineRequest& WithTargetIdentifier(const Aws::String& value) { SetTargetIdentifier(value); return *this;}
112 inline EnableBaselineRequest& WithTargetIdentifier(Aws::String&& value) { SetTargetIdentifier(std::move(value)); return *this;}
113 inline EnableBaselineRequest& WithTargetIdentifier(const char* value) { SetTargetIdentifier(value); return *this;}
115 private:
116
117 Aws::String m_baselineIdentifier;
118 bool m_baselineIdentifierHasBeenSet = false;
119
120 Aws::String m_baselineVersion;
121 bool m_baselineVersionHasBeenSet = false;
122
124 bool m_parametersHasBeenSet = false;
125
127 bool m_tagsHasBeenSet = false;
128
129 Aws::String m_targetIdentifier;
130 bool m_targetIdentifierHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace ControlTower
135} // namespace Aws
EnableBaselineRequest & WithTargetIdentifier(Aws::String &&value)
EnableBaselineRequest & WithBaselineIdentifier(const char *value)
EnableBaselineRequest & AddTags(Aws::String &&key, Aws::String &&value)
EnableBaselineRequest & WithParameters(const Aws::Vector< EnabledBaselineParameter > &value)
const Aws::Vector< EnabledBaselineParameter > & GetParameters() const
EnableBaselineRequest & AddParameters(const EnabledBaselineParameter &value)
EnableBaselineRequest & AddParameters(EnabledBaselineParameter &&value)
EnableBaselineRequest & WithBaselineVersion(const Aws::String &value)
EnableBaselineRequest & AddTags(const char *key, Aws::String &&value)
EnableBaselineRequest & WithTargetIdentifier(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
EnableBaselineRequest & AddTags(Aws::String &&key, const char *value)
EnableBaselineRequest & AddTags(const char *key, const char *value)
EnableBaselineRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
EnableBaselineRequest & AddTags(Aws::String &&key, const Aws::String &value)
virtual const char * GetServiceRequestName() const override
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
EnableBaselineRequest & WithBaselineIdentifier(const Aws::String &value)
EnableBaselineRequest & WithTargetIdentifier(const Aws::String &value)
void SetParameters(const Aws::Vector< EnabledBaselineParameter > &value)
EnableBaselineRequest & WithBaselineVersion(Aws::String &&value)
void SetParameters(Aws::Vector< EnabledBaselineParameter > &&value)
EnableBaselineRequest & WithParameters(Aws::Vector< EnabledBaselineParameter > &&value)
EnableBaselineRequest & AddTags(const Aws::String &key, const Aws::String &value)
EnableBaselineRequest & WithBaselineIdentifier(Aws::String &&value)
EnableBaselineRequest & AddTags(const Aws::String &key, Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
EnableBaselineRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
EnableBaselineRequest & WithBaselineVersion(const char *value)
AWS_CONTROLTOWER_API Aws::String SerializePayload() const override
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