AWS SDK for C++

AWS SDK for C++ Version 1.11.887

Loading...
Searching...
No Matches
UpdateRegistryRequest.h
1
6#pragma once
7#include <aws/agent-registry-control/AgentRegistryControlRequest.h>
8#include <aws/agent-registry-control/AgentRegistryControl_EXPORTS.h>
9#include <aws/agent-registry-control/model/UpdatedApprovalConfiguration.h>
10#include <aws/agent-registry-control/model/UpdatedAutoDetectionConfiguration.h>
11#include <aws/agent-registry-control/model/UpdatedDescription.h>
12#include <aws/agent-registry-control/model/UpdatedDiscoveryConfiguration.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14
15#include <utility>
16
17namespace Aws {
18namespace AgentRegistryControl {
19namespace Model {
20
27 public:
28 AWS_AGENTREGISTRYCONTROL_API UpdateRegistryRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdateRegistry"; }
35
36 AWS_AGENTREGISTRYCONTROL_API Aws::String SerializePayload() const override;
37
39
42 inline const Aws::String& GetRegistryId() const { return m_registryId; }
43 inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
44 template <typename RegistryIdT = Aws::String>
45 void SetRegistryId(RegistryIdT&& value) {
46 m_registryIdHasBeenSet = true;
47 m_registryId = std::forward<RegistryIdT>(value);
48 }
49 template <typename RegistryIdT = Aws::String>
50 UpdateRegistryRequest& WithRegistryId(RegistryIdT&& value) {
51 SetRegistryId(std::forward<RegistryIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetName() const { return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 template <typename NameT = Aws::String>
63 void SetName(NameT&& value) {
64 m_nameHasBeenSet = true;
65 m_name = std::forward<NameT>(value);
66 }
67 template <typename NameT = Aws::String>
69 SetName(std::forward<NameT>(value));
70 return *this;
71 }
73
75
78 inline const UpdatedDescription& GetDescription() const { return m_description; }
79 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
80 template <typename DescriptionT = UpdatedDescription>
81 void SetDescription(DescriptionT&& value) {
82 m_descriptionHasBeenSet = true;
83 m_description = std::forward<DescriptionT>(value);
84 }
85 template <typename DescriptionT = UpdatedDescription>
86 UpdateRegistryRequest& WithDescription(DescriptionT&& value) {
87 SetDescription(std::forward<DescriptionT>(value));
88 return *this;
89 }
91
93
97 inline const UpdatedDiscoveryConfiguration& GetDiscoveryConfiguration() const { return m_discoveryConfiguration; }
98 inline bool DiscoveryConfigurationHasBeenSet() const { return m_discoveryConfigurationHasBeenSet; }
99 template <typename DiscoveryConfigurationT = UpdatedDiscoveryConfiguration>
100 void SetDiscoveryConfiguration(DiscoveryConfigurationT&& value) {
101 m_discoveryConfigurationHasBeenSet = true;
102 m_discoveryConfiguration = std::forward<DiscoveryConfigurationT>(value);
103 }
104 template <typename DiscoveryConfigurationT = UpdatedDiscoveryConfiguration>
105 UpdateRegistryRequest& WithDiscoveryConfiguration(DiscoveryConfigurationT&& value) {
106 SetDiscoveryConfiguration(std::forward<DiscoveryConfigurationT>(value));
107 return *this;
108 }
110
112
117 inline const UpdatedApprovalConfiguration& GetApprovalConfiguration() const { return m_approvalConfiguration; }
118 inline bool ApprovalConfigurationHasBeenSet() const { return m_approvalConfigurationHasBeenSet; }
119 template <typename ApprovalConfigurationT = UpdatedApprovalConfiguration>
120 void SetApprovalConfiguration(ApprovalConfigurationT&& value) {
121 m_approvalConfigurationHasBeenSet = true;
122 m_approvalConfiguration = std::forward<ApprovalConfigurationT>(value);
123 }
124 template <typename ApprovalConfigurationT = UpdatedApprovalConfiguration>
125 UpdateRegistryRequest& WithApprovalConfiguration(ApprovalConfigurationT&& value) {
126 SetApprovalConfiguration(std::forward<ApprovalConfigurationT>(value));
127 return *this;
128 }
130
132
138 inline const UpdatedAutoDetectionConfiguration& GetAutoDetectionConfiguration() const { return m_autoDetectionConfiguration; }
139 inline bool AutoDetectionConfigurationHasBeenSet() const { return m_autoDetectionConfigurationHasBeenSet; }
140 template <typename AutoDetectionConfigurationT = UpdatedAutoDetectionConfiguration>
141 void SetAutoDetectionConfiguration(AutoDetectionConfigurationT&& value) {
142 m_autoDetectionConfigurationHasBeenSet = true;
143 m_autoDetectionConfiguration = std::forward<AutoDetectionConfigurationT>(value);
144 }
145 template <typename AutoDetectionConfigurationT = UpdatedAutoDetectionConfiguration>
146 UpdateRegistryRequest& WithAutoDetectionConfiguration(AutoDetectionConfigurationT&& value) {
147 SetAutoDetectionConfiguration(std::forward<AutoDetectionConfigurationT>(value));
148 return *this;
149 }
151 private:
152 Aws::String m_registryId;
153
154 Aws::String m_name;
155
156 UpdatedDescription m_description;
157
158 UpdatedDiscoveryConfiguration m_discoveryConfiguration;
159
160 UpdatedApprovalConfiguration m_approvalConfiguration;
161
162 UpdatedAutoDetectionConfiguration m_autoDetectionConfiguration;
163 bool m_registryIdHasBeenSet = false;
164 bool m_nameHasBeenSet = false;
165 bool m_descriptionHasBeenSet = false;
166 bool m_discoveryConfigurationHasBeenSet = false;
167 bool m_approvalConfigurationHasBeenSet = false;
168 bool m_autoDetectionConfigurationHasBeenSet = false;
169};
170
171} // namespace Model
172} // namespace AgentRegistryControl
173} // namespace Aws
void SetApprovalConfiguration(ApprovalConfigurationT &&value)
UpdateRegistryRequest & WithDiscoveryConfiguration(DiscoveryConfigurationT &&value)
const UpdatedAutoDetectionConfiguration & GetAutoDetectionConfiguration() const
AWS_AGENTREGISTRYCONTROL_API UpdateRegistryRequest()=default
void SetAutoDetectionConfiguration(AutoDetectionConfigurationT &&value)
UpdateRegistryRequest & WithDescription(DescriptionT &&value)
void SetDiscoveryConfiguration(DiscoveryConfigurationT &&value)
virtual const char * GetServiceRequestName() const override
const UpdatedDiscoveryConfiguration & GetDiscoveryConfiguration() const
const UpdatedApprovalConfiguration & GetApprovalConfiguration() const
UpdateRegistryRequest & WithRegistryId(RegistryIdT &&value)
UpdateRegistryRequest & WithApprovalConfiguration(ApprovalConfigurationT &&value)
UpdateRegistryRequest & WithAutoDetectionConfiguration(AutoDetectionConfigurationT &&value)
AWS_AGENTREGISTRYCONTROL_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String