AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateOrderRequest.h
1
6#pragma once
7#include <aws/outposts/Outposts_EXPORTS.h>
8#include <aws/outposts/OutpostsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/outposts/model/PaymentOption.h>
12#include <aws/outposts/model/PaymentTerm.h>
13#include <aws/outposts/model/LineItemRequest.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Outposts
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_OUTPOSTS_API CreateOrderRequest() = default;
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_OUTPOSTS_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetOutpostIdentifier() const { return m_outpostIdentifier; }
44 inline bool OutpostIdentifierHasBeenSet() const { return m_outpostIdentifierHasBeenSet; }
45 template<typename OutpostIdentifierT = Aws::String>
46 void SetOutpostIdentifier(OutpostIdentifierT&& value) { m_outpostIdentifierHasBeenSet = true; m_outpostIdentifier = std::forward<OutpostIdentifierT>(value); }
47 template<typename OutpostIdentifierT = Aws::String>
48 CreateOrderRequest& WithOutpostIdentifier(OutpostIdentifierT&& value) { SetOutpostIdentifier(std::forward<OutpostIdentifierT>(value)); return *this;}
50
52
55 inline const Aws::Vector<LineItemRequest>& GetLineItems() const { return m_lineItems; }
56 inline bool LineItemsHasBeenSet() const { return m_lineItemsHasBeenSet; }
57 template<typename LineItemsT = Aws::Vector<LineItemRequest>>
58 void SetLineItems(LineItemsT&& value) { m_lineItemsHasBeenSet = true; m_lineItems = std::forward<LineItemsT>(value); }
59 template<typename LineItemsT = Aws::Vector<LineItemRequest>>
60 CreateOrderRequest& WithLineItems(LineItemsT&& value) { SetLineItems(std::forward<LineItemsT>(value)); return *this;}
61 template<typename LineItemsT = LineItemRequest>
62 CreateOrderRequest& AddLineItems(LineItemsT&& value) { m_lineItemsHasBeenSet = true; m_lineItems.emplace_back(std::forward<LineItemsT>(value)); return *this; }
64
66
69 inline PaymentOption GetPaymentOption() const { return m_paymentOption; }
70 inline bool PaymentOptionHasBeenSet() const { return m_paymentOptionHasBeenSet; }
71 inline void SetPaymentOption(PaymentOption value) { m_paymentOptionHasBeenSet = true; m_paymentOption = value; }
74
76
79 inline PaymentTerm GetPaymentTerm() const { return m_paymentTerm; }
80 inline bool PaymentTermHasBeenSet() const { return m_paymentTermHasBeenSet; }
81 inline void SetPaymentTerm(PaymentTerm value) { m_paymentTermHasBeenSet = true; m_paymentTerm = value; }
82 inline CreateOrderRequest& WithPaymentTerm(PaymentTerm value) { SetPaymentTerm(value); return *this;}
84 private:
85
86 Aws::String m_outpostIdentifier;
87 bool m_outpostIdentifierHasBeenSet = false;
88
90 bool m_lineItemsHasBeenSet = false;
91
93 bool m_paymentOptionHasBeenSet = false;
94
95 PaymentTerm m_paymentTerm{PaymentTerm::NOT_SET};
96 bool m_paymentTermHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace Outposts
101} // namespace Aws
const Aws::String & GetOutpostIdentifier() const
AWS_OUTPOSTS_API CreateOrderRequest()=default
virtual const char * GetServiceRequestName() const override
void SetOutpostIdentifier(OutpostIdentifierT &&value)
CreateOrderRequest & WithPaymentTerm(PaymentTerm value)
CreateOrderRequest & WithPaymentOption(PaymentOption value)
CreateOrderRequest & WithOutpostIdentifier(OutpostIdentifierT &&value)
CreateOrderRequest & AddLineItems(LineItemsT &&value)
const Aws::Vector< LineItemRequest > & GetLineItems() const
CreateOrderRequest & WithLineItems(LineItemsT &&value)
AWS_OUTPOSTS_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector