AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = 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 "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 template<typename ControlIdentifierT = Aws::String>
49 void SetControlIdentifier(ControlIdentifierT&& value) { m_controlIdentifierHasBeenSet = true; m_controlIdentifier = std::forward<ControlIdentifierT>(value); }
50 template<typename ControlIdentifierT = Aws::String>
51 EnableControlRequest& WithControlIdentifier(ControlIdentifierT&& value) { SetControlIdentifier(std::forward<ControlIdentifierT>(value)); return *this;}
53
55
59 inline const Aws::Vector<EnabledControlParameter>& GetParameters() const { return m_parameters; }
60 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
61 template<typename ParametersT = Aws::Vector<EnabledControlParameter>>
62 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
63 template<typename ParametersT = Aws::Vector<EnabledControlParameter>>
64 EnableControlRequest& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
65 template<typename ParametersT = EnabledControlParameter>
66 EnableControlRequest& AddParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters.emplace_back(std::forward<ParametersT>(value)); return *this; }
68
70
73 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
74 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
75 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
76 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
77 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
78 EnableControlRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
79 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
80 EnableControlRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
81 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
82 }
84
86
92 inline const Aws::String& GetTargetIdentifier() const { return m_targetIdentifier; }
93 inline bool TargetIdentifierHasBeenSet() const { return m_targetIdentifierHasBeenSet; }
94 template<typename TargetIdentifierT = Aws::String>
95 void SetTargetIdentifier(TargetIdentifierT&& value) { m_targetIdentifierHasBeenSet = true; m_targetIdentifier = std::forward<TargetIdentifierT>(value); }
96 template<typename TargetIdentifierT = Aws::String>
97 EnableControlRequest& WithTargetIdentifier(TargetIdentifierT&& value) { SetTargetIdentifier(std::forward<TargetIdentifierT>(value)); return *this;}
99 private:
100
101 Aws::String m_controlIdentifier;
102 bool m_controlIdentifierHasBeenSet = false;
103
105 bool m_parametersHasBeenSet = false;
106
108 bool m_tagsHasBeenSet = false;
109
110 Aws::String m_targetIdentifier;
111 bool m_targetIdentifierHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace ControlTower
116} // 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