AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
DisableControlRequest.h
1
6#pragma once
7#include <aws/controltower/ControlTowerRequest.h>
8#include <aws/controltower/ControlTower_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace ControlTower {
15namespace Model {
16
20 public:
21 AWS_CONTROLTOWER_API DisableControlRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "DisableControl"; }
28
29 AWS_CONTROLTOWER_API Aws::String SerializePayload() const override;
30
32
39 inline const Aws::String& GetControlIdentifier() const { return m_controlIdentifier; }
40 inline bool ControlIdentifierHasBeenSet() const { return m_controlIdentifierHasBeenSet; }
41 template <typename ControlIdentifierT = Aws::String>
42 void SetControlIdentifier(ControlIdentifierT&& value) {
43 m_controlIdentifierHasBeenSet = true;
44 m_controlIdentifier = std::forward<ControlIdentifierT>(value);
45 }
46 template <typename ControlIdentifierT = Aws::String>
47 DisableControlRequest& WithControlIdentifier(ControlIdentifierT&& value) {
48 SetControlIdentifier(std::forward<ControlIdentifierT>(value));
49 return *this;
50 }
52
54
60 inline const Aws::String& GetTargetIdentifier() const { return m_targetIdentifier; }
61 inline bool TargetIdentifierHasBeenSet() const { return m_targetIdentifierHasBeenSet; }
62 template <typename TargetIdentifierT = Aws::String>
63 void SetTargetIdentifier(TargetIdentifierT&& value) {
64 m_targetIdentifierHasBeenSet = true;
65 m_targetIdentifier = std::forward<TargetIdentifierT>(value);
66 }
67 template <typename TargetIdentifierT = Aws::String>
68 DisableControlRequest& WithTargetIdentifier(TargetIdentifierT&& value) {
69 SetTargetIdentifier(std::forward<TargetIdentifierT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::String& GetEnabledControlIdentifier() const { return m_enabledControlIdentifier; }
80 inline bool EnabledControlIdentifierHasBeenSet() const { return m_enabledControlIdentifierHasBeenSet; }
81 template <typename EnabledControlIdentifierT = Aws::String>
82 void SetEnabledControlIdentifier(EnabledControlIdentifierT&& value) {
83 m_enabledControlIdentifierHasBeenSet = true;
84 m_enabledControlIdentifier = std::forward<EnabledControlIdentifierT>(value);
85 }
86 template <typename EnabledControlIdentifierT = Aws::String>
87 DisableControlRequest& WithEnabledControlIdentifier(EnabledControlIdentifierT&& value) {
88 SetEnabledControlIdentifier(std::forward<EnabledControlIdentifierT>(value));
89 return *this;
90 }
92 private:
93 Aws::String m_controlIdentifier;
94
95 Aws::String m_targetIdentifier;
96
97 Aws::String m_enabledControlIdentifier;
98 bool m_controlIdentifierHasBeenSet = false;
99 bool m_targetIdentifierHasBeenSet = false;
100 bool m_enabledControlIdentifierHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace ControlTower
105} // namespace Aws
void SetControlIdentifier(ControlIdentifierT &&value)
DisableControlRequest & WithTargetIdentifier(TargetIdentifierT &&value)
virtual const char * GetServiceRequestName() const override
void SetEnabledControlIdentifier(EnabledControlIdentifierT &&value)
DisableControlRequest & WithControlIdentifier(ControlIdentifierT &&value)
DisableControlRequest & WithEnabledControlIdentifier(EnabledControlIdentifierT &&value)
AWS_CONTROLTOWER_API DisableControlRequest()=default
AWS_CONTROLTOWER_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String