AWS SDK for C++

AWS SDK for C++ Version 1.11.867

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/UpdatedDescription.h>
11#include <aws/agent-registry-control/model/UpdatedDiscoveryConfiguration.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace AgentRegistryControl {
18namespace Model {
19
26 public:
27 AWS_AGENTREGISTRYCONTROL_API UpdateRegistryRequest() = 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 "UpdateRegistry"; }
34
35 AWS_AGENTREGISTRYCONTROL_API Aws::String SerializePayload() const override;
36
38
41 inline const Aws::String& GetRegistryId() const { return m_registryId; }
42 inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
43 template <typename RegistryIdT = Aws::String>
44 void SetRegistryId(RegistryIdT&& value) {
45 m_registryIdHasBeenSet = true;
46 m_registryId = std::forward<RegistryIdT>(value);
47 }
48 template <typename RegistryIdT = Aws::String>
49 UpdateRegistryRequest& WithRegistryId(RegistryIdT&& value) {
50 SetRegistryId(std::forward<RegistryIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
77 inline const UpdatedDescription& GetDescription() const { return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 template <typename DescriptionT = UpdatedDescription>
80 void SetDescription(DescriptionT&& value) {
81 m_descriptionHasBeenSet = true;
82 m_description = std::forward<DescriptionT>(value);
83 }
84 template <typename DescriptionT = UpdatedDescription>
85 UpdateRegistryRequest& WithDescription(DescriptionT&& value) {
86 SetDescription(std::forward<DescriptionT>(value));
87 return *this;
88 }
90
92
96 inline const UpdatedDiscoveryConfiguration& GetDiscoveryConfiguration() const { return m_discoveryConfiguration; }
97 inline bool DiscoveryConfigurationHasBeenSet() const { return m_discoveryConfigurationHasBeenSet; }
98 template <typename DiscoveryConfigurationT = UpdatedDiscoveryConfiguration>
99 void SetDiscoveryConfiguration(DiscoveryConfigurationT&& value) {
100 m_discoveryConfigurationHasBeenSet = true;
101 m_discoveryConfiguration = std::forward<DiscoveryConfigurationT>(value);
102 }
103 template <typename DiscoveryConfigurationT = UpdatedDiscoveryConfiguration>
104 UpdateRegistryRequest& WithDiscoveryConfiguration(DiscoveryConfigurationT&& value) {
105 SetDiscoveryConfiguration(std::forward<DiscoveryConfigurationT>(value));
106 return *this;
107 }
109
111
116 inline const UpdatedApprovalConfiguration& GetApprovalConfiguration() const { return m_approvalConfiguration; }
117 inline bool ApprovalConfigurationHasBeenSet() const { return m_approvalConfigurationHasBeenSet; }
118 template <typename ApprovalConfigurationT = UpdatedApprovalConfiguration>
119 void SetApprovalConfiguration(ApprovalConfigurationT&& value) {
120 m_approvalConfigurationHasBeenSet = true;
121 m_approvalConfiguration = std::forward<ApprovalConfigurationT>(value);
122 }
123 template <typename ApprovalConfigurationT = UpdatedApprovalConfiguration>
124 UpdateRegistryRequest& WithApprovalConfiguration(ApprovalConfigurationT&& value) {
125 SetApprovalConfiguration(std::forward<ApprovalConfigurationT>(value));
126 return *this;
127 }
129 private:
130 Aws::String m_registryId;
131
132 Aws::String m_name;
133
134 UpdatedDescription m_description;
135
136 UpdatedDiscoveryConfiguration m_discoveryConfiguration;
137
138 UpdatedApprovalConfiguration m_approvalConfiguration;
139 bool m_registryIdHasBeenSet = false;
140 bool m_nameHasBeenSet = false;
141 bool m_descriptionHasBeenSet = false;
142 bool m_discoveryConfigurationHasBeenSet = false;
143 bool m_approvalConfigurationHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace AgentRegistryControl
148} // namespace Aws
void SetApprovalConfiguration(ApprovalConfigurationT &&value)
UpdateRegistryRequest & WithDiscoveryConfiguration(DiscoveryConfigurationT &&value)
AWS_AGENTREGISTRYCONTROL_API UpdateRegistryRequest()=default
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)
AWS_AGENTREGISTRYCONTROL_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String