AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
UpdateRelationshipRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/partnercentral-channel/PartnerCentralChannelRequest.h>
9#include <aws/partnercentral-channel/PartnerCentralChannel_EXPORTS.h>
10#include <aws/partnercentral-channel/model/SupportPlan.h>
11
12#include <utility>
13
14namespace Aws {
15namespace PartnerCentralChannel {
16namespace Model {
17
21 public:
22 AWS_PARTNERCENTRALCHANNEL_API UpdateRelationshipRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdateRelationship"; }
29
30 AWS_PARTNERCENTRALCHANNEL_API Aws::String SerializePayload() const override;
31
32 AWS_PARTNERCENTRALCHANNEL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
38 inline const Aws::String& GetCatalog() const { return m_catalog; }
39 inline bool CatalogHasBeenSet() const { return m_catalogHasBeenSet; }
40 template <typename CatalogT = Aws::String>
41 void SetCatalog(CatalogT&& value) {
42 m_catalogHasBeenSet = true;
43 m_catalog = std::forward<CatalogT>(value);
44 }
45 template <typename CatalogT = Aws::String>
47 SetCatalog(std::forward<CatalogT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetIdentifier() const { return m_identifier; }
57 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
58 template <typename IdentifierT = Aws::String>
59 void SetIdentifier(IdentifierT&& value) {
60 m_identifierHasBeenSet = true;
61 m_identifier = std::forward<IdentifierT>(value);
62 }
63 template <typename IdentifierT = Aws::String>
65 SetIdentifier(std::forward<IdentifierT>(value));
66 return *this;
67 }
69
71
75 inline const Aws::String& GetProgramManagementAccountIdentifier() const { return m_programManagementAccountIdentifier; }
76 inline bool ProgramManagementAccountIdentifierHasBeenSet() const { return m_programManagementAccountIdentifierHasBeenSet; }
77 template <typename ProgramManagementAccountIdentifierT = Aws::String>
78 void SetProgramManagementAccountIdentifier(ProgramManagementAccountIdentifierT&& value) {
79 m_programManagementAccountIdentifierHasBeenSet = true;
80 m_programManagementAccountIdentifier = std::forward<ProgramManagementAccountIdentifierT>(value);
81 }
82 template <typename ProgramManagementAccountIdentifierT = Aws::String>
83 UpdateRelationshipRequest& WithProgramManagementAccountIdentifier(ProgramManagementAccountIdentifierT&& value) {
84 SetProgramManagementAccountIdentifier(std::forward<ProgramManagementAccountIdentifierT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetRevision() const { return m_revision; }
94 inline bool RevisionHasBeenSet() const { return m_revisionHasBeenSet; }
95 template <typename RevisionT = Aws::String>
96 void SetRevision(RevisionT&& value) {
97 m_revisionHasBeenSet = true;
98 m_revision = std::forward<RevisionT>(value);
99 }
100 template <typename RevisionT = Aws::String>
102 SetRevision(std::forward<RevisionT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetDisplayName() const { return m_displayName; }
112 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
113 template <typename DisplayNameT = Aws::String>
114 void SetDisplayName(DisplayNameT&& value) {
115 m_displayNameHasBeenSet = true;
116 m_displayName = std::forward<DisplayNameT>(value);
117 }
118 template <typename DisplayNameT = Aws::String>
120 SetDisplayName(std::forward<DisplayNameT>(value));
121 return *this;
122 }
124
126
129 inline const SupportPlan& GetRequestedSupportPlan() const { return m_requestedSupportPlan; }
130 inline bool RequestedSupportPlanHasBeenSet() const { return m_requestedSupportPlanHasBeenSet; }
131 template <typename RequestedSupportPlanT = SupportPlan>
132 void SetRequestedSupportPlan(RequestedSupportPlanT&& value) {
133 m_requestedSupportPlanHasBeenSet = true;
134 m_requestedSupportPlan = std::forward<RequestedSupportPlanT>(value);
135 }
136 template <typename RequestedSupportPlanT = SupportPlan>
137 UpdateRelationshipRequest& WithRequestedSupportPlan(RequestedSupportPlanT&& value) {
138 SetRequestedSupportPlan(std::forward<RequestedSupportPlanT>(value));
139 return *this;
140 }
142 private:
143 Aws::String m_catalog;
144
145 Aws::String m_identifier;
146
147 Aws::String m_programManagementAccountIdentifier;
148
149 Aws::String m_revision;
150
151 Aws::String m_displayName;
152
153 SupportPlan m_requestedSupportPlan;
154 bool m_catalogHasBeenSet = false;
155 bool m_identifierHasBeenSet = false;
156 bool m_programManagementAccountIdentifierHasBeenSet = false;
157 bool m_revisionHasBeenSet = false;
158 bool m_displayNameHasBeenSet = false;
159 bool m_requestedSupportPlanHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace PartnerCentralChannel
164} // namespace Aws
void SetProgramManagementAccountIdentifier(ProgramManagementAccountIdentifierT &&value)
UpdateRelationshipRequest & WithRequestedSupportPlan(RequestedSupportPlanT &&value)
AWS_PARTNERCENTRALCHANNEL_API UpdateRelationshipRequest()=default
UpdateRelationshipRequest & WithDisplayName(DisplayNameT &&value)
UpdateRelationshipRequest & WithProgramManagementAccountIdentifier(ProgramManagementAccountIdentifierT &&value)
AWS_PARTNERCENTRALCHANNEL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateRelationshipRequest & WithRevision(RevisionT &&value)
AWS_PARTNERCENTRALCHANNEL_API Aws::String SerializePayload() const override
UpdateRelationshipRequest & WithIdentifier(IdentifierT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String