AWS SDK for C++  1.9.153
AWS SDK for C++
CreateOrderRequest.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace Outposts
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "CreateOrder"; }
35 
36  Aws::String SerializePayload() const override;
37 
38 
42  inline const Aws::String& GetOutpostIdentifier() const{ return m_outpostIdentifier; }
43 
47  inline bool OutpostIdentifierHasBeenSet() const { return m_outpostIdentifierHasBeenSet; }
48 
52  inline void SetOutpostIdentifier(const Aws::String& value) { m_outpostIdentifierHasBeenSet = true; m_outpostIdentifier = value; }
53 
57  inline void SetOutpostIdentifier(Aws::String&& value) { m_outpostIdentifierHasBeenSet = true; m_outpostIdentifier = std::move(value); }
58 
62  inline void SetOutpostIdentifier(const char* value) { m_outpostIdentifierHasBeenSet = true; m_outpostIdentifier.assign(value); }
63 
67  inline CreateOrderRequest& WithOutpostIdentifier(const Aws::String& value) { SetOutpostIdentifier(value); return *this;}
68 
72  inline CreateOrderRequest& WithOutpostIdentifier(Aws::String&& value) { SetOutpostIdentifier(std::move(value)); return *this;}
73 
77  inline CreateOrderRequest& WithOutpostIdentifier(const char* value) { SetOutpostIdentifier(value); return *this;}
78 
79 
83  inline const Aws::Vector<LineItemRequest>& GetLineItems() const{ return m_lineItems; }
84 
88  inline bool LineItemsHasBeenSet() const { return m_lineItemsHasBeenSet; }
89 
93  inline void SetLineItems(const Aws::Vector<LineItemRequest>& value) { m_lineItemsHasBeenSet = true; m_lineItems = value; }
94 
98  inline void SetLineItems(Aws::Vector<LineItemRequest>&& value) { m_lineItemsHasBeenSet = true; m_lineItems = std::move(value); }
99 
103  inline CreateOrderRequest& WithLineItems(const Aws::Vector<LineItemRequest>& value) { SetLineItems(value); return *this;}
104 
108  inline CreateOrderRequest& WithLineItems(Aws::Vector<LineItemRequest>&& value) { SetLineItems(std::move(value)); return *this;}
109 
113  inline CreateOrderRequest& AddLineItems(const LineItemRequest& value) { m_lineItemsHasBeenSet = true; m_lineItems.push_back(value); return *this; }
114 
118  inline CreateOrderRequest& AddLineItems(LineItemRequest&& value) { m_lineItemsHasBeenSet = true; m_lineItems.push_back(std::move(value)); return *this; }
119 
120 
124  inline const PaymentOption& GetPaymentOption() const{ return m_paymentOption; }
125 
129  inline bool PaymentOptionHasBeenSet() const { return m_paymentOptionHasBeenSet; }
130 
134  inline void SetPaymentOption(const PaymentOption& value) { m_paymentOptionHasBeenSet = true; m_paymentOption = value; }
135 
139  inline void SetPaymentOption(PaymentOption&& value) { m_paymentOptionHasBeenSet = true; m_paymentOption = std::move(value); }
140 
144  inline CreateOrderRequest& WithPaymentOption(const PaymentOption& value) { SetPaymentOption(value); return *this;}
145 
149  inline CreateOrderRequest& WithPaymentOption(PaymentOption&& value) { SetPaymentOption(std::move(value)); return *this;}
150 
151 
155  inline const PaymentTerm& GetPaymentTerm() const{ return m_paymentTerm; }
156 
160  inline bool PaymentTermHasBeenSet() const { return m_paymentTermHasBeenSet; }
161 
165  inline void SetPaymentTerm(const PaymentTerm& value) { m_paymentTermHasBeenSet = true; m_paymentTerm = value; }
166 
170  inline void SetPaymentTerm(PaymentTerm&& value) { m_paymentTermHasBeenSet = true; m_paymentTerm = std::move(value); }
171 
175  inline CreateOrderRequest& WithPaymentTerm(const PaymentTerm& value) { SetPaymentTerm(value); return *this;}
176 
180  inline CreateOrderRequest& WithPaymentTerm(PaymentTerm&& value) { SetPaymentTerm(std::move(value)); return *this;}
181 
182  private:
183 
184  Aws::String m_outpostIdentifier;
185  bool m_outpostIdentifierHasBeenSet;
186 
187  Aws::Vector<LineItemRequest> m_lineItems;
188  bool m_lineItemsHasBeenSet;
189 
190  PaymentOption m_paymentOption;
191  bool m_paymentOptionHasBeenSet;
192 
193  PaymentTerm m_paymentTerm;
194  bool m_paymentTermHasBeenSet;
195  };
196 
197 } // namespace Model
198 } // namespace Outposts
199 } // namespace Aws
OutpostsRequest.h
Aws::Outposts::Model::CreateOrderRequest::WithLineItems
CreateOrderRequest & WithLineItems(const Aws::Vector< LineItemRequest > &value)
Definition: CreateOrderRequest.h:103
Aws::Outposts::Model::CreateOrderRequest::SetPaymentTerm
void SetPaymentTerm(const PaymentTerm &value)
Definition: CreateOrderRequest.h:165
Aws::Outposts::Model::CreateOrderRequest::GetLineItems
const Aws::Vector< LineItemRequest > & GetLineItems() const
Definition: CreateOrderRequest.h:83
Aws::Outposts::Model::CreateOrderRequest::WithOutpostIdentifier
CreateOrderRequest & WithOutpostIdentifier(Aws::String &&value)
Definition: CreateOrderRequest.h:72
Aws::Outposts::Model::CreateOrderRequest::SetLineItems
void SetLineItems(const Aws::Vector< LineItemRequest > &value)
Definition: CreateOrderRequest.h:93
PaymentOption.h
Aws::Outposts::Model::CreateOrderRequest::GetOutpostIdentifier
const Aws::String & GetOutpostIdentifier() const
Definition: CreateOrderRequest.h:42
Aws::Outposts::Model::CreateOrderRequest::SetPaymentTerm
void SetPaymentTerm(PaymentTerm &&value)
Definition: CreateOrderRequest.h:170
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::Outposts::Model::PaymentOption
PaymentOption
Definition: PaymentOption.h:17
Aws::Outposts::Model::CreateOrderRequest::SetPaymentOption
void SetPaymentOption(const PaymentOption &value)
Definition: CreateOrderRequest.h:134
Aws::Outposts::Model::CreateOrderRequest::SetOutpostIdentifier
void SetOutpostIdentifier(const char *value)
Definition: CreateOrderRequest.h:62
Aws::Outposts::Model::CreateOrderRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Outposts::Model::CreateOrderRequest::SetLineItems
void SetLineItems(Aws::Vector< LineItemRequest > &&value)
Definition: CreateOrderRequest.h:98
PaymentTerm.h
Aws::Outposts::Model::CreateOrderRequest::AddLineItems
CreateOrderRequest & AddLineItems(LineItemRequest &&value)
Definition: CreateOrderRequest.h:118
LineItemRequest.h
Aws::Outposts::Model::CreateOrderRequest::CreateOrderRequest
CreateOrderRequest()
AWSString.h
Aws::Outposts::Model::CreateOrderRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateOrderRequest.h:34
Aws::Outposts::Model::CreateOrderRequest::LineItemsHasBeenSet
bool LineItemsHasBeenSet() const
Definition: CreateOrderRequest.h:88
Aws::Outposts::Model::PaymentTerm
PaymentTerm
Definition: PaymentTerm.h:17
AWS_OUTPOSTS_API
#define AWS_OUTPOSTS_API
Definition: Outposts_EXPORTS.h:28
Aws::Outposts::Model::CreateOrderRequest
Definition: CreateOrderRequest.h:26
Aws::Outposts::Model::CreateOrderRequest::SetPaymentOption
void SetPaymentOption(PaymentOption &&value)
Definition: CreateOrderRequest.h:139
Aws::Outposts::Model::CreateOrderRequest::WithPaymentOption
CreateOrderRequest & WithPaymentOption(const PaymentOption &value)
Definition: CreateOrderRequest.h:144
Aws::Outposts::Model::CreateOrderRequest::WithOutpostIdentifier
CreateOrderRequest & WithOutpostIdentifier(const Aws::String &value)
Definition: CreateOrderRequest.h:67
Aws::Outposts::Model::CreateOrderRequest::GetPaymentOption
const PaymentOption & GetPaymentOption() const
Definition: CreateOrderRequest.h:124
Aws
Definition: AccessManagementClient.h:15
Aws::Outposts::Model::CreateOrderRequest::WithLineItems
CreateOrderRequest & WithLineItems(Aws::Vector< LineItemRequest > &&value)
Definition: CreateOrderRequest.h:108
Aws::Outposts::Model::CreateOrderRequest::GetPaymentTerm
const PaymentTerm & GetPaymentTerm() const
Definition: CreateOrderRequest.h:155
Aws::Outposts::Model::CreateOrderRequest::WithOutpostIdentifier
CreateOrderRequest & WithOutpostIdentifier(const char *value)
Definition: CreateOrderRequest.h:77
Aws::Outposts::Model::CreateOrderRequest::WithPaymentOption
CreateOrderRequest & WithPaymentOption(PaymentOption &&value)
Definition: CreateOrderRequest.h:149
Aws::Outposts::Model::CreateOrderRequest::SetOutpostIdentifier
void SetOutpostIdentifier(Aws::String &&value)
Definition: CreateOrderRequest.h:57
Aws::Outposts::Model::CreateOrderRequest::WithPaymentTerm
CreateOrderRequest & WithPaymentTerm(const PaymentTerm &value)
Definition: CreateOrderRequest.h:175
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Outposts_EXPORTS.h
Aws::Outposts::Model::CreateOrderRequest::PaymentTermHasBeenSet
bool PaymentTermHasBeenSet() const
Definition: CreateOrderRequest.h:160
Aws::Outposts::Model::CreateOrderRequest::SetOutpostIdentifier
void SetOutpostIdentifier(const Aws::String &value)
Definition: CreateOrderRequest.h:52
Aws::Outposts::Model::CreateOrderRequest::WithPaymentTerm
CreateOrderRequest & WithPaymentTerm(PaymentTerm &&value)
Definition: CreateOrderRequest.h:180
Aws::Outposts::Model::CreateOrderRequest::PaymentOptionHasBeenSet
bool PaymentOptionHasBeenSet() const
Definition: CreateOrderRequest.h:129
Aws::Outposts::Model::CreateOrderRequest::AddLineItems
CreateOrderRequest & AddLineItems(const LineItemRequest &value)
Definition: CreateOrderRequest.h:113
Aws::Outposts::OutpostsRequest
Definition: OutpostsRequest.h:17
Aws::Outposts::Model::CreateOrderRequest::OutpostIdentifierHasBeenSet
bool OutpostIdentifierHasBeenSet() const
Definition: CreateOrderRequest.h:47
Aws::Outposts::Model::LineItemRequest
Definition: LineItemRequest.h:32