AWS SDK for C++

AWS SDK for C++ Version 1.11.714

Loading...
Searching...
No Matches
UpdateConnectionPreferencesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/partnercentral-account/PartnerCentralAccountRequest.h>
10#include <aws/partnercentral-account/PartnerCentralAccount_EXPORTS.h>
11#include <aws/partnercentral-account/model/AccessType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace PartnerCentralAccount {
17namespace Model {
18
22 public:
23 AWS_PARTNERCENTRALACCOUNT_API UpdateConnectionPreferencesRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateConnectionPreferences"; }
30
31 AWS_PARTNERCENTRALACCOUNT_API Aws::String SerializePayload() const override;
32
33 AWS_PARTNERCENTRALACCOUNT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
39 inline const Aws::String& GetCatalog() const { return m_catalog; }
40 inline bool CatalogHasBeenSet() const { return m_catalogHasBeenSet; }
41 template <typename CatalogT = Aws::String>
42 void SetCatalog(CatalogT&& value) {
43 m_catalogHasBeenSet = true;
44 m_catalog = std::forward<CatalogT>(value);
45 }
46 template <typename CatalogT = Aws::String>
48 SetCatalog(std::forward<CatalogT>(value));
49 return *this;
50 }
52
54
57 inline long long GetRevision() const { return m_revision; }
58 inline bool RevisionHasBeenSet() const { return m_revisionHasBeenSet; }
59 inline void SetRevision(long long value) {
60 m_revisionHasBeenSet = true;
61 m_revision = value;
62 }
64 SetRevision(value);
65 return *this;
66 }
68
70
74 inline AccessType GetAccessType() const { return m_accessType; }
75 inline bool AccessTypeHasBeenSet() const { return m_accessTypeHasBeenSet; }
76 inline void SetAccessType(AccessType value) {
77 m_accessTypeHasBeenSet = true;
78 m_accessType = value;
79 }
81 SetAccessType(value);
82 return *this;
83 }
85
87
90 inline const Aws::Vector<Aws::String>& GetExcludedParticipantIdentifiers() const { return m_excludedParticipantIdentifiers; }
91 inline bool ExcludedParticipantIdentifiersHasBeenSet() const { return m_excludedParticipantIdentifiersHasBeenSet; }
92 template <typename ExcludedParticipantIdentifiersT = Aws::Vector<Aws::String>>
93 void SetExcludedParticipantIdentifiers(ExcludedParticipantIdentifiersT&& value) {
94 m_excludedParticipantIdentifiersHasBeenSet = true;
95 m_excludedParticipantIdentifiers = std::forward<ExcludedParticipantIdentifiersT>(value);
96 }
97 template <typename ExcludedParticipantIdentifiersT = Aws::Vector<Aws::String>>
99 SetExcludedParticipantIdentifiers(std::forward<ExcludedParticipantIdentifiersT>(value));
100 return *this;
101 }
102 template <typename ExcludedParticipantIdentifiersT = Aws::String>
104 m_excludedParticipantIdentifiersHasBeenSet = true;
105 m_excludedParticipantIdentifiers.emplace_back(std::forward<ExcludedParticipantIdentifiersT>(value));
106 return *this;
107 }
109 private:
110 Aws::String m_catalog;
111
112 long long m_revision{0};
113
114 AccessType m_accessType{AccessType::NOT_SET};
115
116 Aws::Vector<Aws::String> m_excludedParticipantIdentifiers;
117 bool m_catalogHasBeenSet = false;
118 bool m_revisionHasBeenSet = false;
119 bool m_accessTypeHasBeenSet = false;
120 bool m_excludedParticipantIdentifiersHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace PartnerCentralAccount
125} // namespace Aws
AWS_PARTNERCENTRALACCOUNT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_PARTNERCENTRALACCOUNT_API Aws::String SerializePayload() const override
AWS_PARTNERCENTRALACCOUNT_API UpdateConnectionPreferencesRequest()=default
UpdateConnectionPreferencesRequest & AddExcludedParticipantIdentifiers(ExcludedParticipantIdentifiersT &&value)
UpdateConnectionPreferencesRequest & WithExcludedParticipantIdentifiers(ExcludedParticipantIdentifiersT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector