AWS SDK for C++

AWS SDK for C++ Version 1.11.862

Loading...
Searching...
No Matches
AssociateResourcesToSubscriptionRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/pricing-plan-manager/PricingPlanManagerRequest.h>
11#include <aws/pricing-plan-manager/PricingPlanManager_EXPORTS.h>
12
13#include <utility>
14
15namespace Aws {
16namespace PricingPlanManager {
17namespace Model {
18
22 public:
23 AWS_PRICINGPLANMANAGER_API AssociateResourcesToSubscriptionRequest() = 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 "AssociateResourcesToSubscription"; }
30
31 AWS_PRICINGPLANMANAGER_API Aws::String SerializePayload() const override;
32
33 AWS_PRICINGPLANMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
39 inline const Aws::String& GetArn() const { return m_arn; }
40 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
41 template <typename ArnT = Aws::String>
42 void SetArn(ArnT&& value) {
43 m_arnHasBeenSet = true;
44 m_arn = std::forward<ArnT>(value);
45 }
46 template <typename ArnT = Aws::String>
48 SetArn(std::forward<ArnT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::Vector<Aws::String>& GetResourceArns() const { return m_resourceArns; }
58 inline bool ResourceArnsHasBeenSet() const { return m_resourceArnsHasBeenSet; }
59 template <typename ResourceArnsT = Aws::Vector<Aws::String>>
60 void SetResourceArns(ResourceArnsT&& value) {
61 m_resourceArnsHasBeenSet = true;
62 m_resourceArns = std::forward<ResourceArnsT>(value);
63 }
64 template <typename ResourceArnsT = Aws::Vector<Aws::String>>
66 SetResourceArns(std::forward<ResourceArnsT>(value));
67 return *this;
68 }
69 template <typename ResourceArnsT = Aws::String>
71 m_resourceArnsHasBeenSet = true;
72 m_resourceArns.emplace_back(std::forward<ResourceArnsT>(value));
73 return *this;
74 }
76
78
82 inline const Aws::String& GetIfMatch() const { return m_ifMatch; }
83 inline bool IfMatchHasBeenSet() const { return m_ifMatchHasBeenSet; }
84 template <typename IfMatchT = Aws::String>
85 void SetIfMatch(IfMatchT&& value) {
86 m_ifMatchHasBeenSet = true;
87 m_ifMatch = std::forward<IfMatchT>(value);
88 }
89 template <typename IfMatchT = Aws::String>
91 SetIfMatch(std::forward<IfMatchT>(value));
92 return *this;
93 }
95
97
101 inline const Aws::String& GetClientToken() const { return m_clientToken; }
102 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
103 template <typename ClientTokenT = Aws::String>
104 void SetClientToken(ClientTokenT&& value) {
105 m_clientTokenHasBeenSet = true;
106 m_clientToken = std::forward<ClientTokenT>(value);
107 }
108 template <typename ClientTokenT = Aws::String>
110 SetClientToken(std::forward<ClientTokenT>(value));
111 return *this;
112 }
114 private:
115 Aws::String m_arn;
116
117 Aws::Vector<Aws::String> m_resourceArns;
118
119 Aws::String m_ifMatch;
120
122 bool m_arnHasBeenSet = false;
123 bool m_resourceArnsHasBeenSet = false;
124 bool m_ifMatchHasBeenSet = false;
125 bool m_clientTokenHasBeenSet = true;
126};
127
128} // namespace Model
129} // namespace PricingPlanManager
130} // namespace Aws
AWS_PRICINGPLANMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AssociateResourcesToSubscriptionRequest & AddResourceArns(ResourceArnsT &&value)
AWS_PRICINGPLANMANAGER_API Aws::String SerializePayload() const override
AssociateResourcesToSubscriptionRequest & WithClientToken(ClientTokenT &&value)
AssociateResourcesToSubscriptionRequest & WithResourceArns(ResourceArnsT &&value)
AWS_PRICINGPLANMANAGER_API AssociateResourcesToSubscriptionRequest()=default
static Aws::Utils::UUID PseudoRandomUUID()
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