AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PurchaseOfferingRequest.h
1
6#pragma once
7#include <aws/medialive/MediaLive_EXPORTS.h>
8#include <aws/medialive/MediaLiveRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/medialive/model/RenewalSettings.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace MediaLive
18{
19namespace Model
20{
21
28 {
29 public:
30 AWS_MEDIALIVE_API PurchaseOfferingRequest();
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 "PurchaseOffering"; }
37
38 AWS_MEDIALIVE_API Aws::String SerializePayload() const override;
39
40
42
45 inline int GetCount() const{ return m_count; }
46 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
47 inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; }
48 inline PurchaseOfferingRequest& WithCount(int value) { SetCount(value); return *this;}
50
52
55 inline const Aws::String& GetName() const{ return m_name; }
56 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
57 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
58 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
59 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
60 inline PurchaseOfferingRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
61 inline PurchaseOfferingRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
62 inline PurchaseOfferingRequest& WithName(const char* value) { SetName(value); return *this;}
64
66
69 inline const Aws::String& GetOfferingId() const{ return m_offeringId; }
70 inline bool OfferingIdHasBeenSet() const { return m_offeringIdHasBeenSet; }
71 inline void SetOfferingId(const Aws::String& value) { m_offeringIdHasBeenSet = true; m_offeringId = value; }
72 inline void SetOfferingId(Aws::String&& value) { m_offeringIdHasBeenSet = true; m_offeringId = std::move(value); }
73 inline void SetOfferingId(const char* value) { m_offeringIdHasBeenSet = true; m_offeringId.assign(value); }
74 inline PurchaseOfferingRequest& WithOfferingId(const Aws::String& value) { SetOfferingId(value); return *this;}
75 inline PurchaseOfferingRequest& WithOfferingId(Aws::String&& value) { SetOfferingId(std::move(value)); return *this;}
76 inline PurchaseOfferingRequest& WithOfferingId(const char* value) { SetOfferingId(value); return *this;}
78
80
83 inline const RenewalSettings& GetRenewalSettings() const{ return m_renewalSettings; }
84 inline bool RenewalSettingsHasBeenSet() const { return m_renewalSettingsHasBeenSet; }
85 inline void SetRenewalSettings(const RenewalSettings& value) { m_renewalSettingsHasBeenSet = true; m_renewalSettings = value; }
86 inline void SetRenewalSettings(RenewalSettings&& value) { m_renewalSettingsHasBeenSet = true; m_renewalSettings = std::move(value); }
88 inline PurchaseOfferingRequest& WithRenewalSettings(RenewalSettings&& value) { SetRenewalSettings(std::move(value)); return *this;}
90
92
96 inline const Aws::String& GetRequestId() const{ return m_requestId; }
97 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
98 inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; }
99 inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); }
100 inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); }
101 inline PurchaseOfferingRequest& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
102 inline PurchaseOfferingRequest& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
103 inline PurchaseOfferingRequest& WithRequestId(const char* value) { SetRequestId(value); return *this;}
105
107
112 inline const Aws::String& GetStart() const{ return m_start; }
113 inline bool StartHasBeenSet() const { return m_startHasBeenSet; }
114 inline void SetStart(const Aws::String& value) { m_startHasBeenSet = true; m_start = value; }
115 inline void SetStart(Aws::String&& value) { m_startHasBeenSet = true; m_start = std::move(value); }
116 inline void SetStart(const char* value) { m_startHasBeenSet = true; m_start.assign(value); }
117 inline PurchaseOfferingRequest& WithStart(const Aws::String& value) { SetStart(value); return *this;}
118 inline PurchaseOfferingRequest& WithStart(Aws::String&& value) { SetStart(std::move(value)); return *this;}
119 inline PurchaseOfferingRequest& WithStart(const char* value) { SetStart(value); return *this;}
121
123
126 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
127 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
128 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
129 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
130 inline PurchaseOfferingRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
131 inline PurchaseOfferingRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
132 inline PurchaseOfferingRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
133 inline PurchaseOfferingRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
134 inline PurchaseOfferingRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
135 inline PurchaseOfferingRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
136 inline PurchaseOfferingRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
137 inline PurchaseOfferingRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
138 inline PurchaseOfferingRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
140 private:
141
142 int m_count;
143 bool m_countHasBeenSet = false;
144
145 Aws::String m_name;
146 bool m_nameHasBeenSet = false;
147
148 Aws::String m_offeringId;
149 bool m_offeringIdHasBeenSet = false;
150
151 RenewalSettings m_renewalSettings;
152 bool m_renewalSettingsHasBeenSet = false;
153
154 Aws::String m_requestId;
155 bool m_requestIdHasBeenSet = false;
156
157 Aws::String m_start;
158 bool m_startHasBeenSet = false;
159
161 bool m_tagsHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace MediaLive
166} // namespace Aws
PurchaseOfferingRequest & AddTags(const Aws::String &key, Aws::String &&value)
PurchaseOfferingRequest & WithRequestId(const char *value)
void SetRenewalSettings(const RenewalSettings &value)
PurchaseOfferingRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
PurchaseOfferingRequest & WithCount(int value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
PurchaseOfferingRequest & WithOfferingId(const char *value)
PurchaseOfferingRequest & WithName(Aws::String &&value)
AWS_MEDIALIVE_API Aws::String SerializePayload() const override
PurchaseOfferingRequest & AddTags(const Aws::String &key, const Aws::String &value)
PurchaseOfferingRequest & WithStart(Aws::String &&value)
PurchaseOfferingRequest & WithRequestId(Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
PurchaseOfferingRequest & AddTags(Aws::String &&key, Aws::String &&value)
PurchaseOfferingRequest & AddTags(Aws::String &&key, const char *value)
PurchaseOfferingRequest & WithOfferingId(Aws::String &&value)
PurchaseOfferingRequest & WithRenewalSettings(RenewalSettings &&value)
PurchaseOfferingRequest & WithStart(const Aws::String &value)
PurchaseOfferingRequest & WithOfferingId(const Aws::String &value)
PurchaseOfferingRequest & AddTags(const char *key, Aws::String &&value)
PurchaseOfferingRequest & WithName(const Aws::String &value)
PurchaseOfferingRequest & WithStart(const char *value)
PurchaseOfferingRequest & WithName(const char *value)
PurchaseOfferingRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
PurchaseOfferingRequest & WithRenewalSettings(const RenewalSettings &value)
PurchaseOfferingRequest & WithRequestId(const Aws::String &value)
PurchaseOfferingRequest & AddTags(Aws::String &&key, const Aws::String &value)
virtual const char * GetServiceRequestName() const override
PurchaseOfferingRequest & AddTags(const char *key, const char *value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String