AWS SDK for C++

AWS SDK for C++ Version 1.11.827

Loading...
Searching...
No Matches
CreateQuoteRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/outposts/OutpostsRequest.h>
10#include <aws/outposts/Outposts_EXPORTS.h>
11#include <aws/outposts/model/PaymentOption.h>
12#include <aws/outposts/model/PaymentTerm.h>
13#include <aws/outposts/model/QuoteCapacity.h>
14#include <aws/outposts/model/QuoteConstraint.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Outposts {
20namespace Model {
21
25 public:
26 AWS_OUTPOSTS_API CreateQuoteRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateQuote"; }
33
34 AWS_OUTPOSTS_API Aws::String SerializePayload() const override;
35
37
41 inline const Aws::String& GetOutpostIdentifier() const { return m_outpostIdentifier; }
42 inline bool OutpostIdentifierHasBeenSet() const { return m_outpostIdentifierHasBeenSet; }
43 template <typename OutpostIdentifierT = Aws::String>
44 void SetOutpostIdentifier(OutpostIdentifierT&& value) {
45 m_outpostIdentifierHasBeenSet = true;
46 m_outpostIdentifier = std::forward<OutpostIdentifierT>(value);
47 }
48 template <typename OutpostIdentifierT = Aws::String>
49 CreateQuoteRequest& WithOutpostIdentifier(OutpostIdentifierT&& value) {
50 SetOutpostIdentifier(std::forward<OutpostIdentifierT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetCountryCode() const { return m_countryCode; }
60 inline bool CountryCodeHasBeenSet() const { return m_countryCodeHasBeenSet; }
61 template <typename CountryCodeT = Aws::String>
62 void SetCountryCode(CountryCodeT&& value) {
63 m_countryCodeHasBeenSet = true;
64 m_countryCode = std::forward<CountryCodeT>(value);
65 }
66 template <typename CountryCodeT = Aws::String>
67 CreateQuoteRequest& WithCountryCode(CountryCodeT&& value) {
68 SetCountryCode(std::forward<CountryCodeT>(value));
69 return *this;
70 }
72
74
81 inline const Aws::Vector<QuoteCapacity>& GetRequestedCapacities() const { return m_requestedCapacities; }
82 inline bool RequestedCapacitiesHasBeenSet() const { return m_requestedCapacitiesHasBeenSet; }
83 template <typename RequestedCapacitiesT = Aws::Vector<QuoteCapacity>>
84 void SetRequestedCapacities(RequestedCapacitiesT&& value) {
85 m_requestedCapacitiesHasBeenSet = true;
86 m_requestedCapacities = std::forward<RequestedCapacitiesT>(value);
87 }
88 template <typename RequestedCapacitiesT = Aws::Vector<QuoteCapacity>>
89 CreateQuoteRequest& WithRequestedCapacities(RequestedCapacitiesT&& value) {
90 SetRequestedCapacities(std::forward<RequestedCapacitiesT>(value));
91 return *this;
92 }
93 template <typename RequestedCapacitiesT = QuoteCapacity>
94 CreateQuoteRequest& AddRequestedCapacities(RequestedCapacitiesT&& value) {
95 m_requestedCapacitiesHasBeenSet = true;
96 m_requestedCapacities.emplace_back(std::forward<RequestedCapacitiesT>(value));
97 return *this;
98 }
100
102
106 inline const Aws::Vector<QuoteConstraint>& GetRequestedConstraints() const { return m_requestedConstraints; }
107 inline bool RequestedConstraintsHasBeenSet() const { return m_requestedConstraintsHasBeenSet; }
108 template <typename RequestedConstraintsT = Aws::Vector<QuoteConstraint>>
109 void SetRequestedConstraints(RequestedConstraintsT&& value) {
110 m_requestedConstraintsHasBeenSet = true;
111 m_requestedConstraints = std::forward<RequestedConstraintsT>(value);
112 }
113 template <typename RequestedConstraintsT = Aws::Vector<QuoteConstraint>>
114 CreateQuoteRequest& WithRequestedConstraints(RequestedConstraintsT&& value) {
115 SetRequestedConstraints(std::forward<RequestedConstraintsT>(value));
116 return *this;
117 }
118 template <typename RequestedConstraintsT = QuoteConstraint>
119 CreateQuoteRequest& AddRequestedConstraints(RequestedConstraintsT&& value) {
120 m_requestedConstraintsHasBeenSet = true;
121 m_requestedConstraints.emplace_back(std::forward<RequestedConstraintsT>(value));
122 return *this;
123 }
125
127
131 inline const Aws::Vector<PaymentOption>& GetRequestedPaymentOptions() const { return m_requestedPaymentOptions; }
132 inline bool RequestedPaymentOptionsHasBeenSet() const { return m_requestedPaymentOptionsHasBeenSet; }
133 template <typename RequestedPaymentOptionsT = Aws::Vector<PaymentOption>>
134 void SetRequestedPaymentOptions(RequestedPaymentOptionsT&& value) {
135 m_requestedPaymentOptionsHasBeenSet = true;
136 m_requestedPaymentOptions = std::forward<RequestedPaymentOptionsT>(value);
137 }
138 template <typename RequestedPaymentOptionsT = Aws::Vector<PaymentOption>>
139 CreateQuoteRequest& WithRequestedPaymentOptions(RequestedPaymentOptionsT&& value) {
140 SetRequestedPaymentOptions(std::forward<RequestedPaymentOptionsT>(value));
141 return *this;
142 }
144 m_requestedPaymentOptionsHasBeenSet = true;
145 m_requestedPaymentOptions.push_back(value);
146 return *this;
147 }
149
151
155 inline const Aws::Vector<PaymentTerm>& GetRequestedPaymentTerms() const { return m_requestedPaymentTerms; }
156 inline bool RequestedPaymentTermsHasBeenSet() const { return m_requestedPaymentTermsHasBeenSet; }
157 template <typename RequestedPaymentTermsT = Aws::Vector<PaymentTerm>>
158 void SetRequestedPaymentTerms(RequestedPaymentTermsT&& value) {
159 m_requestedPaymentTermsHasBeenSet = true;
160 m_requestedPaymentTerms = std::forward<RequestedPaymentTermsT>(value);
161 }
162 template <typename RequestedPaymentTermsT = Aws::Vector<PaymentTerm>>
163 CreateQuoteRequest& WithRequestedPaymentTerms(RequestedPaymentTermsT&& value) {
164 SetRequestedPaymentTerms(std::forward<RequestedPaymentTermsT>(value));
165 return *this;
166 }
168 m_requestedPaymentTermsHasBeenSet = true;
169 m_requestedPaymentTerms.push_back(value);
170 return *this;
171 }
173
175
178 inline const Aws::String& GetDescription() const { return m_description; }
179 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
180 template <typename DescriptionT = Aws::String>
181 void SetDescription(DescriptionT&& value) {
182 m_descriptionHasBeenSet = true;
183 m_description = std::forward<DescriptionT>(value);
184 }
185 template <typename DescriptionT = Aws::String>
186 CreateQuoteRequest& WithDescription(DescriptionT&& value) {
187 SetDescription(std::forward<DescriptionT>(value));
188 return *this;
189 }
191 private:
192 Aws::String m_outpostIdentifier;
193
194 Aws::String m_countryCode;
195
196 Aws::Vector<QuoteCapacity> m_requestedCapacities;
197
198 Aws::Vector<QuoteConstraint> m_requestedConstraints;
199
200 Aws::Vector<PaymentOption> m_requestedPaymentOptions;
201
202 Aws::Vector<PaymentTerm> m_requestedPaymentTerms;
203
204 Aws::String m_description;
205 bool m_outpostIdentifierHasBeenSet = false;
206 bool m_countryCodeHasBeenSet = false;
207 bool m_requestedCapacitiesHasBeenSet = false;
208 bool m_requestedConstraintsHasBeenSet = false;
209 bool m_requestedPaymentOptionsHasBeenSet = false;
210 bool m_requestedPaymentTermsHasBeenSet = false;
211 bool m_descriptionHasBeenSet = false;
212};
213
214} // namespace Model
215} // namespace Outposts
216} // namespace Aws
const Aws::Vector< QuoteCapacity > & GetRequestedCapacities() const
const Aws::Vector< PaymentOption > & GetRequestedPaymentOptions() const
CreateQuoteRequest & AddRequestedPaymentOptions(PaymentOption value)
CreateQuoteRequest & AddRequestedCapacities(RequestedCapacitiesT &&value)
void SetOutpostIdentifier(OutpostIdentifierT &&value)
void SetRequestedCapacities(RequestedCapacitiesT &&value)
const Aws::String & GetOutpostIdentifier() const
AWS_OUTPOSTS_API Aws::String SerializePayload() const override
CreateQuoteRequest & WithCountryCode(CountryCodeT &&value)
CreateQuoteRequest & WithRequestedConstraints(RequestedConstraintsT &&value)
void SetRequestedConstraints(RequestedConstraintsT &&value)
CreateQuoteRequest & WithRequestedPaymentOptions(RequestedPaymentOptionsT &&value)
const Aws::Vector< QuoteConstraint > & GetRequestedConstraints() const
AWS_OUTPOSTS_API CreateQuoteRequest()=default
virtual const char * GetServiceRequestName() const override
CreateQuoteRequest & WithRequestedCapacities(RequestedCapacitiesT &&value)
void SetRequestedPaymentTerms(RequestedPaymentTermsT &&value)
CreateQuoteRequest & WithRequestedPaymentTerms(RequestedPaymentTermsT &&value)
const Aws::Vector< PaymentTerm > & GetRequestedPaymentTerms() const
void SetRequestedPaymentOptions(RequestedPaymentOptionsT &&value)
const Aws::String & GetCountryCode() const
CreateQuoteRequest & WithOutpostIdentifier(OutpostIdentifierT &&value)
CreateQuoteRequest & WithDescription(DescriptionT &&value)
CreateQuoteRequest & AddRequestedPaymentTerms(PaymentTerm value)
CreateQuoteRequest & AddRequestedConstraints(RequestedConstraintsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector