AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeOfferingResult.h
1
6#pragma once
7#include <aws/medialive/MediaLive_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/medialive/model/OfferingDurationUnits.h>
10#include <aws/medialive/model/OfferingType.h>
11#include <aws/medialive/model/ReservationResourceSpecification.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace MediaLive
27{
28namespace Model
29{
36 {
37 public:
38 AWS_MEDIALIVE_API DescribeOfferingResult();
41
42
44
48 inline const Aws::String& GetArn() const{ return m_arn; }
49 inline void SetArn(const Aws::String& value) { m_arn = value; }
50 inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
51 inline void SetArn(const char* value) { m_arn.assign(value); }
52 inline DescribeOfferingResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
53 inline DescribeOfferingResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
54 inline DescribeOfferingResult& WithArn(const char* value) { SetArn(value); return *this;}
56
58
61 inline const Aws::String& GetCurrencyCode() const{ return m_currencyCode; }
62 inline void SetCurrencyCode(const Aws::String& value) { m_currencyCode = value; }
63 inline void SetCurrencyCode(Aws::String&& value) { m_currencyCode = std::move(value); }
64 inline void SetCurrencyCode(const char* value) { m_currencyCode.assign(value); }
65 inline DescribeOfferingResult& WithCurrencyCode(const Aws::String& value) { SetCurrencyCode(value); return *this;}
66 inline DescribeOfferingResult& WithCurrencyCode(Aws::String&& value) { SetCurrencyCode(std::move(value)); return *this;}
67 inline DescribeOfferingResult& WithCurrencyCode(const char* value) { SetCurrencyCode(value); return *this;}
69
71
74 inline int GetDuration() const{ return m_duration; }
75 inline void SetDuration(int value) { m_duration = value; }
76 inline DescribeOfferingResult& WithDuration(int value) { SetDuration(value); return *this;}
78
80
83 inline const OfferingDurationUnits& GetDurationUnits() const{ return m_durationUnits; }
84 inline void SetDurationUnits(const OfferingDurationUnits& value) { m_durationUnits = value; }
85 inline void SetDurationUnits(OfferingDurationUnits&& value) { m_durationUnits = std::move(value); }
87 inline DescribeOfferingResult& WithDurationUnits(OfferingDurationUnits&& value) { SetDurationUnits(std::move(value)); return *this;}
89
91
94 inline double GetFixedPrice() const{ return m_fixedPrice; }
95 inline void SetFixedPrice(double value) { m_fixedPrice = value; }
96 inline DescribeOfferingResult& WithFixedPrice(double value) { SetFixedPrice(value); return *this;}
98
100
104 inline const Aws::String& GetOfferingDescription() const{ return m_offeringDescription; }
105 inline void SetOfferingDescription(const Aws::String& value) { m_offeringDescription = value; }
106 inline void SetOfferingDescription(Aws::String&& value) { m_offeringDescription = std::move(value); }
107 inline void SetOfferingDescription(const char* value) { m_offeringDescription.assign(value); }
109 inline DescribeOfferingResult& WithOfferingDescription(Aws::String&& value) { SetOfferingDescription(std::move(value)); return *this;}
110 inline DescribeOfferingResult& WithOfferingDescription(const char* value) { SetOfferingDescription(value); return *this;}
112
114
117 inline const Aws::String& GetOfferingId() const{ return m_offeringId; }
118 inline void SetOfferingId(const Aws::String& value) { m_offeringId = value; }
119 inline void SetOfferingId(Aws::String&& value) { m_offeringId = std::move(value); }
120 inline void SetOfferingId(const char* value) { m_offeringId.assign(value); }
121 inline DescribeOfferingResult& WithOfferingId(const Aws::String& value) { SetOfferingId(value); return *this;}
122 inline DescribeOfferingResult& WithOfferingId(Aws::String&& value) { SetOfferingId(std::move(value)); return *this;}
123 inline DescribeOfferingResult& WithOfferingId(const char* value) { SetOfferingId(value); return *this;}
125
127
130 inline const OfferingType& GetOfferingType() const{ return m_offeringType; }
131 inline void SetOfferingType(const OfferingType& value) { m_offeringType = value; }
132 inline void SetOfferingType(OfferingType&& value) { m_offeringType = std::move(value); }
133 inline DescribeOfferingResult& WithOfferingType(const OfferingType& value) { SetOfferingType(value); return *this;}
134 inline DescribeOfferingResult& WithOfferingType(OfferingType&& value) { SetOfferingType(std::move(value)); return *this;}
136
138
141 inline const Aws::String& GetRegion() const{ return m_region; }
142 inline void SetRegion(const Aws::String& value) { m_region = value; }
143 inline void SetRegion(Aws::String&& value) { m_region = std::move(value); }
144 inline void SetRegion(const char* value) { m_region.assign(value); }
145 inline DescribeOfferingResult& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
146 inline DescribeOfferingResult& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
147 inline DescribeOfferingResult& WithRegion(const char* value) { SetRegion(value); return *this;}
149
151
154 inline const ReservationResourceSpecification& GetResourceSpecification() const{ return m_resourceSpecification; }
155 inline void SetResourceSpecification(const ReservationResourceSpecification& value) { m_resourceSpecification = value; }
156 inline void SetResourceSpecification(ReservationResourceSpecification&& value) { m_resourceSpecification = std::move(value); }
160
162
165 inline double GetUsagePrice() const{ return m_usagePrice; }
166 inline void SetUsagePrice(double value) { m_usagePrice = value; }
167 inline DescribeOfferingResult& WithUsagePrice(double value) { SetUsagePrice(value); return *this;}
169
171
172 inline const Aws::String& GetRequestId() const{ return m_requestId; }
173 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
174 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
175 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
176 inline DescribeOfferingResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
177 inline DescribeOfferingResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
178 inline DescribeOfferingResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
180 private:
181
182 Aws::String m_arn;
183
184 Aws::String m_currencyCode;
185
186 int m_duration;
187
188 OfferingDurationUnits m_durationUnits;
189
190 double m_fixedPrice;
191
192 Aws::String m_offeringDescription;
193
194 Aws::String m_offeringId;
195
196 OfferingType m_offeringType;
197
198 Aws::String m_region;
199
200 ReservationResourceSpecification m_resourceSpecification;
201
202 double m_usagePrice;
203
204 Aws::String m_requestId;
205 };
206
207} // namespace Model
208} // namespace MediaLive
209} // namespace Aws
DescribeOfferingResult & WithDurationUnits(const OfferingDurationUnits &value)
DescribeOfferingResult & WithOfferingDescription(Aws::String &&value)
DescribeOfferingResult & WithArn(const Aws::String &value)
DescribeOfferingResult & WithOfferingType(OfferingType &&value)
DescribeOfferingResult & WithOfferingId(Aws::String &&value)
DescribeOfferingResult & WithOfferingDescription(const char *value)
void SetResourceSpecification(ReservationResourceSpecification &&value)
AWS_MEDIALIVE_API DescribeOfferingResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const ReservationResourceSpecification & GetResourceSpecification() const
DescribeOfferingResult & WithCurrencyCode(Aws::String &&value)
DescribeOfferingResult & WithResourceSpecification(ReservationResourceSpecification &&value)
DescribeOfferingResult & WithRequestId(Aws::String &&value)
DescribeOfferingResult & WithRegion(const Aws::String &value)
DescribeOfferingResult & WithOfferingId(const char *value)
DescribeOfferingResult & WithDurationUnits(OfferingDurationUnits &&value)
void SetDurationUnits(const OfferingDurationUnits &value)
DescribeOfferingResult & WithOfferingType(const OfferingType &value)
DescribeOfferingResult & WithFixedPrice(double value)
DescribeOfferingResult & WithArn(Aws::String &&value)
DescribeOfferingResult & WithResourceSpecification(const ReservationResourceSpecification &value)
DescribeOfferingResult & WithRegion(const char *value)
const OfferingDurationUnits & GetDurationUnits() const
void SetDurationUnits(OfferingDurationUnits &&value)
DescribeOfferingResult & WithOfferingDescription(const Aws::String &value)
DescribeOfferingResult & WithRequestId(const Aws::String &value)
DescribeOfferingResult & WithCurrencyCode(const char *value)
DescribeOfferingResult & WithArn(const char *value)
void SetResourceSpecification(const ReservationResourceSpecification &value)
DescribeOfferingResult & WithDuration(int value)
DescribeOfferingResult & WithUsagePrice(double value)
DescribeOfferingResult & WithRegion(Aws::String &&value)
DescribeOfferingResult & WithOfferingId(const Aws::String &value)
DescribeOfferingResult & WithCurrencyCode(const Aws::String &value)
AWS_MEDIALIVE_API DescribeOfferingResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeOfferingResult & WithRequestId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue