AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename BaselineIdentifierT = Aws::String>
45 void SetBaselineIdentifier(BaselineIdentifierT&& value) { m_baselineIdentifierHasBeenSet = true; m_baselineIdentifier = std::forward<BaselineIdentifierT>(value); }
46 template<typename BaselineIdentifierT = Aws::String>
47 EnableBaselineRequest& WithBaselineIdentifier(BaselineIdentifierT&& value) { SetBaselineIdentifier(std::forward<BaselineIdentifierT>(value)); return *this;}
49
51
54 inline const Aws::String& GetBaselineVersion() const { return m_baselineVersion; }
55 inline bool BaselineVersionHasBeenSet() const { return m_baselineVersionHasBeenSet; }
56 template<typename BaselineVersionT = Aws::String>
57 void SetBaselineVersion(BaselineVersionT&& value) { m_baselineVersionHasBeenSet = true; m_baselineVersion = std::forward<BaselineVersionT>(value); }
58 template<typename BaselineVersionT = Aws::String>
59 EnableBaselineRequest& WithBaselineVersion(BaselineVersionT&& value) { SetBaselineVersion(std::forward<BaselineVersionT>(value)); return *this;}
61
63
68 inline const Aws::Vector<EnabledBaselineParameter>& GetParameters() const { return m_parameters; }
69 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
70 template<typename ParametersT = Aws::Vector<EnabledBaselineParameter>>
71 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
72 template<typename ParametersT = Aws::Vector<EnabledBaselineParameter>>
73 EnableBaselineRequest& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
74 template<typename ParametersT = EnabledBaselineParameter>
75 EnableBaselineRequest& AddParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters.emplace_back(std::forward<ParametersT>(value)); return *this; }
77
79
82 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
83 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
84 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
85 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
86 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
87 EnableBaselineRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
88 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
89 EnableBaselineRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
90 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
91 }
93
95
99 inline const Aws::String& GetTargetIdentifier() const { return m_targetIdentifier; }
100 inline bool TargetIdentifierHasBeenSet() const { return m_targetIdentifierHasBeenSet; }
101 template<typename TargetIdentifierT = Aws::String>
102 void SetTargetIdentifier(TargetIdentifierT&& value) { m_targetIdentifierHasBeenSet = true; m_targetIdentifier = std::forward<TargetIdentifierT>(value); }
103 template<typename TargetIdentifierT = Aws::String>
104 EnableBaselineRequest& WithTargetIdentifier(TargetIdentifierT&& value) { SetTargetIdentifier(std::forward<TargetIdentifierT>(value)); return *this;}
106 private:
107
108 Aws::String m_baselineIdentifier;
109 bool m_baselineIdentifierHasBeenSet = false;
110
111 Aws::String m_baselineVersion;
112 bool m_baselineVersionHasBeenSet = false;
113
115 bool m_parametersHasBeenSet = false;
116
118 bool m_tagsHasBeenSet = false;
119
120 Aws::String m_targetIdentifier;
121 bool m_targetIdentifierHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace ControlTower
126} // 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