AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateSubscriptionRequestRequest.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/datazone/DataZoneRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/datazone/model/SubscribedListingInput.h>
12#include <aws/datazone/model/SubscribedPrincipalInput.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace DataZone
19{
20namespace Model
21{
22
26 {
27 public:
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 "CreateSubscriptionRequest"; }
35
36 AWS_DATAZONE_API Aws::String SerializePayload() const override;
37
38
40
44 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
45 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
46 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
47 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
48 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
49 inline CreateSubscriptionRequestRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
50 inline CreateSubscriptionRequestRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
51 inline CreateSubscriptionRequestRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
53
55
59 inline const Aws::String& GetDomainIdentifier() const{ return m_domainIdentifier; }
60 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
61 inline void SetDomainIdentifier(const Aws::String& value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier = value; }
62 inline void SetDomainIdentifier(Aws::String&& value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier = std::move(value); }
63 inline void SetDomainIdentifier(const char* value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier.assign(value); }
65 inline CreateSubscriptionRequestRequest& WithDomainIdentifier(Aws::String&& value) { SetDomainIdentifier(std::move(value)); return *this;}
66 inline CreateSubscriptionRequestRequest& WithDomainIdentifier(const char* value) { SetDomainIdentifier(value); return *this;}
68
70
73 inline const Aws::String& GetRequestReason() const{ return m_requestReason; }
74 inline bool RequestReasonHasBeenSet() const { return m_requestReasonHasBeenSet; }
75 inline void SetRequestReason(const Aws::String& value) { m_requestReasonHasBeenSet = true; m_requestReason = value; }
76 inline void SetRequestReason(Aws::String&& value) { m_requestReasonHasBeenSet = true; m_requestReason = std::move(value); }
77 inline void SetRequestReason(const char* value) { m_requestReasonHasBeenSet = true; m_requestReason.assign(value); }
79 inline CreateSubscriptionRequestRequest& WithRequestReason(Aws::String&& value) { SetRequestReason(std::move(value)); return *this;}
80 inline CreateSubscriptionRequestRequest& WithRequestReason(const char* value) { SetRequestReason(value); return *this;}
82
84
87 inline const Aws::Vector<SubscribedListingInput>& GetSubscribedListings() const{ return m_subscribedListings; }
88 inline bool SubscribedListingsHasBeenSet() const { return m_subscribedListingsHasBeenSet; }
89 inline void SetSubscribedListings(const Aws::Vector<SubscribedListingInput>& value) { m_subscribedListingsHasBeenSet = true; m_subscribedListings = value; }
90 inline void SetSubscribedListings(Aws::Vector<SubscribedListingInput>&& value) { m_subscribedListingsHasBeenSet = true; m_subscribedListings = std::move(value); }
93 inline CreateSubscriptionRequestRequest& AddSubscribedListings(const SubscribedListingInput& value) { m_subscribedListingsHasBeenSet = true; m_subscribedListings.push_back(value); return *this; }
94 inline CreateSubscriptionRequestRequest& AddSubscribedListings(SubscribedListingInput&& value) { m_subscribedListingsHasBeenSet = true; m_subscribedListings.push_back(std::move(value)); return *this; }
96
98
102 inline const Aws::Vector<SubscribedPrincipalInput>& GetSubscribedPrincipals() const{ return m_subscribedPrincipals; }
103 inline bool SubscribedPrincipalsHasBeenSet() const { return m_subscribedPrincipalsHasBeenSet; }
104 inline void SetSubscribedPrincipals(const Aws::Vector<SubscribedPrincipalInput>& value) { m_subscribedPrincipalsHasBeenSet = true; m_subscribedPrincipals = value; }
105 inline void SetSubscribedPrincipals(Aws::Vector<SubscribedPrincipalInput>&& value) { m_subscribedPrincipalsHasBeenSet = true; m_subscribedPrincipals = std::move(value); }
108 inline CreateSubscriptionRequestRequest& AddSubscribedPrincipals(const SubscribedPrincipalInput& value) { m_subscribedPrincipalsHasBeenSet = true; m_subscribedPrincipals.push_back(value); return *this; }
109 inline CreateSubscriptionRequestRequest& AddSubscribedPrincipals(SubscribedPrincipalInput&& value) { m_subscribedPrincipalsHasBeenSet = true; m_subscribedPrincipals.push_back(std::move(value)); return *this; }
111 private:
112
113 Aws::String m_clientToken;
114 bool m_clientTokenHasBeenSet = false;
115
116 Aws::String m_domainIdentifier;
117 bool m_domainIdentifierHasBeenSet = false;
118
119 Aws::String m_requestReason;
120 bool m_requestReasonHasBeenSet = false;
121
122 Aws::Vector<SubscribedListingInput> m_subscribedListings;
123 bool m_subscribedListingsHasBeenSet = false;
124
125 Aws::Vector<SubscribedPrincipalInput> m_subscribedPrincipals;
126 bool m_subscribedPrincipalsHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace DataZone
131} // namespace Aws
CreateSubscriptionRequestRequest & WithDomainIdentifier(const Aws::String &value)
CreateSubscriptionRequestRequest & WithRequestReason(const Aws::String &value)
void SetSubscribedPrincipals(Aws::Vector< SubscribedPrincipalInput > &&value)
CreateSubscriptionRequestRequest & WithDomainIdentifier(Aws::String &&value)
CreateSubscriptionRequestRequest & AddSubscribedListings(const SubscribedListingInput &value)
CreateSubscriptionRequestRequest & WithDomainIdentifier(const char *value)
void SetSubscribedListings(const Aws::Vector< SubscribedListingInput > &value)
CreateSubscriptionRequestRequest & WithSubscribedListings(Aws::Vector< SubscribedListingInput > &&value)
CreateSubscriptionRequestRequest & AddSubscribedPrincipals(SubscribedPrincipalInput &&value)
CreateSubscriptionRequestRequest & WithRequestReason(Aws::String &&value)
const Aws::Vector< SubscribedListingInput > & GetSubscribedListings() const
CreateSubscriptionRequestRequest & WithClientToken(const Aws::String &value)
CreateSubscriptionRequestRequest & WithRequestReason(const char *value)
CreateSubscriptionRequestRequest & WithClientToken(Aws::String &&value)
CreateSubscriptionRequestRequest & WithClientToken(const char *value)
void SetSubscribedListings(Aws::Vector< SubscribedListingInput > &&value)
CreateSubscriptionRequestRequest & WithSubscribedListings(const Aws::Vector< SubscribedListingInput > &value)
CreateSubscriptionRequestRequest & WithSubscribedPrincipals(const Aws::Vector< SubscribedPrincipalInput > &value)
AWS_DATAZONE_API Aws::String SerializePayload() const override
CreateSubscriptionRequestRequest & AddSubscribedPrincipals(const SubscribedPrincipalInput &value)
CreateSubscriptionRequestRequest & AddSubscribedListings(SubscribedListingInput &&value)
CreateSubscriptionRequestRequest & WithSubscribedPrincipals(Aws::Vector< SubscribedPrincipalInput > &&value)
const Aws::Vector< SubscribedPrincipalInput > & GetSubscribedPrincipals() const
void SetSubscribedPrincipals(const Aws::Vector< SubscribedPrincipalInput > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector