AWS SDK for C++

AWS SDK for C++ Version 1.11.767

Loading...
Searching...
No Matches
UpdateDomainNameRequest.h
1
6#pragma once
7#include <aws/apigateway/APIGatewayRequest.h>
8#include <aws/apigateway/APIGateway_EXPORTS.h>
9#include <aws/apigateway/model/PatchOperation.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Http {
17class URI;
18} // namespace Http
19namespace APIGateway {
20namespace Model {
21
29 public:
30 AWS_APIGATEWAY_API UpdateDomainNameRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "UpdateDomainName"; }
37
38 AWS_APIGATEWAY_API Aws::String SerializePayload() const override;
39
40 AWS_APIGATEWAY_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41
43
46 inline const Aws::String& GetDomainName() const { return m_domainName; }
47 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
48 template <typename DomainNameT = Aws::String>
49 void SetDomainName(DomainNameT&& value) {
50 m_domainNameHasBeenSet = true;
51 m_domainName = std::forward<DomainNameT>(value);
52 }
53 template <typename DomainNameT = Aws::String>
55 SetDomainName(std::forward<DomainNameT>(value));
56 return *this;
57 }
59
61
65 inline const Aws::String& GetDomainNameId() const { return m_domainNameId; }
66 inline bool DomainNameIdHasBeenSet() const { return m_domainNameIdHasBeenSet; }
67 template <typename DomainNameIdT = Aws::String>
68 void SetDomainNameId(DomainNameIdT&& value) {
69 m_domainNameIdHasBeenSet = true;
70 m_domainNameId = std::forward<DomainNameIdT>(value);
71 }
72 template <typename DomainNameIdT = Aws::String>
73 UpdateDomainNameRequest& WithDomainNameId(DomainNameIdT&& value) {
74 SetDomainNameId(std::forward<DomainNameIdT>(value));
75 return *this;
76 }
78
80
85 inline const Aws::Vector<PatchOperation>& GetPatchOperations() const { return m_patchOperations; }
86 inline bool PatchOperationsHasBeenSet() const { return m_patchOperationsHasBeenSet; }
87 template <typename PatchOperationsT = Aws::Vector<PatchOperation>>
88 void SetPatchOperations(PatchOperationsT&& value) {
89 m_patchOperationsHasBeenSet = true;
90 m_patchOperations = std::forward<PatchOperationsT>(value);
91 }
92 template <typename PatchOperationsT = Aws::Vector<PatchOperation>>
93 UpdateDomainNameRequest& WithPatchOperations(PatchOperationsT&& value) {
94 SetPatchOperations(std::forward<PatchOperationsT>(value));
95 return *this;
96 }
97 template <typename PatchOperationsT = PatchOperation>
98 UpdateDomainNameRequest& AddPatchOperations(PatchOperationsT&& value) {
99 m_patchOperationsHasBeenSet = true;
100 m_patchOperations.emplace_back(std::forward<PatchOperationsT>(value));
101 return *this;
102 }
104 private:
105 Aws::String m_domainName;
106
107 Aws::String m_domainNameId;
108
109 Aws::Vector<PatchOperation> m_patchOperations;
110 bool m_domainNameHasBeenSet = false;
111 bool m_domainNameIdHasBeenSet = false;
112 bool m_patchOperationsHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace APIGateway
117} // namespace Aws
AWS_APIGATEWAY_API UpdateDomainNameRequest()=default
AWS_APIGATEWAY_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
UpdateDomainNameRequest & WithPatchOperations(PatchOperationsT &&value)
virtual const char * GetServiceRequestName() const override
AWS_APIGATEWAY_API Aws::String SerializePayload() const override
const Aws::Vector< PatchOperation > & GetPatchOperations() const
UpdateDomainNameRequest & WithDomainNameId(DomainNameIdT &&value)
UpdateDomainNameRequest & WithDomainName(DomainNameT &&value)
UpdateDomainNameRequest & AddPatchOperations(PatchOperationsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector