AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename NameT = Aws::String>
58 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
59 template<typename NameT = Aws::String>
60 PurchaseOfferingRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
62
64
67 inline const Aws::String& GetOfferingId() const { return m_offeringId; }
68 inline bool OfferingIdHasBeenSet() const { return m_offeringIdHasBeenSet; }
69 template<typename OfferingIdT = Aws::String>
70 void SetOfferingId(OfferingIdT&& value) { m_offeringIdHasBeenSet = true; m_offeringId = std::forward<OfferingIdT>(value); }
71 template<typename OfferingIdT = Aws::String>
72 PurchaseOfferingRequest& WithOfferingId(OfferingIdT&& value) { SetOfferingId(std::forward<OfferingIdT>(value)); return *this;}
74
76
79 inline const RenewalSettings& GetRenewalSettings() const { return m_renewalSettings; }
80 inline bool RenewalSettingsHasBeenSet() const { return m_renewalSettingsHasBeenSet; }
81 template<typename RenewalSettingsT = RenewalSettings>
82 void SetRenewalSettings(RenewalSettingsT&& value) { m_renewalSettingsHasBeenSet = true; m_renewalSettings = std::forward<RenewalSettingsT>(value); }
83 template<typename RenewalSettingsT = RenewalSettings>
84 PurchaseOfferingRequest& WithRenewalSettings(RenewalSettingsT&& value) { SetRenewalSettings(std::forward<RenewalSettingsT>(value)); return *this;}
86
88
92 inline const Aws::String& GetRequestId() const { return m_requestId; }
93 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
94 template<typename RequestIdT = Aws::String>
95 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
96 template<typename RequestIdT = Aws::String>
97 PurchaseOfferingRequest& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
99
101
106 inline const Aws::String& GetStart() const { return m_start; }
107 inline bool StartHasBeenSet() const { return m_startHasBeenSet; }
108 template<typename StartT = Aws::String>
109 void SetStart(StartT&& value) { m_startHasBeenSet = true; m_start = std::forward<StartT>(value); }
110 template<typename StartT = Aws::String>
111 PurchaseOfferingRequest& WithStart(StartT&& value) { SetStart(std::forward<StartT>(value)); return *this;}
113
115
118 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
119 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
120 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
121 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
122 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
123 PurchaseOfferingRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
124 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
125 PurchaseOfferingRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
126 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
127 }
129 private:
130
131 int m_count{0};
132 bool m_countHasBeenSet = false;
133
134 Aws::String m_name;
135 bool m_nameHasBeenSet = false;
136
137 Aws::String m_offeringId;
138 bool m_offeringIdHasBeenSet = false;
139
140 RenewalSettings m_renewalSettings;
141 bool m_renewalSettingsHasBeenSet = false;
142
144 bool m_requestIdHasBeenSet = true;
145
146 Aws::String m_start;
147 bool m_startHasBeenSet = false;
148
150 bool m_tagsHasBeenSet = false;
151 };
152
153} // namespace Model
154} // namespace MediaLive
155} // namespace Aws
PurchaseOfferingRequest & WithCount(int value)
PurchaseOfferingRequest & WithOfferingId(OfferingIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_MEDIALIVE_API Aws::String SerializePayload() const override
PurchaseOfferingRequest & WithTags(TagsT &&value)
AWS_MEDIALIVE_API PurchaseOfferingRequest()=default
PurchaseOfferingRequest & WithRenewalSettings(RenewalSettingsT &&value)
PurchaseOfferingRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
PurchaseOfferingRequest & WithName(NameT &&value)
PurchaseOfferingRequest & WithStart(StartT &&value)
PurchaseOfferingRequest & WithRequestId(RequestIdT &&value)
virtual const char * GetServiceRequestName() const override
static Aws::Utils::UUID PseudoRandomUUID()
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