AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetOutpostIdentifier(const Aws::String& value) { m_outpostIdentifierHasBeenSet = true; m_outpostIdentifier = value; }
46 inline void SetOutpostIdentifier(Aws::String&& value) { m_outpostIdentifierHasBeenSet = true; m_outpostIdentifier = std::move(value); }
47 inline void SetOutpostIdentifier(const char* value) { m_outpostIdentifierHasBeenSet = true; m_outpostIdentifier.assign(value); }
48 inline CreateOrderRequest& WithOutpostIdentifier(const Aws::String& value) { SetOutpostIdentifier(value); return *this;}
49 inline CreateOrderRequest& WithOutpostIdentifier(Aws::String&& value) { SetOutpostIdentifier(std::move(value)); return *this;}
50 inline CreateOrderRequest& WithOutpostIdentifier(const char* value) { SetOutpostIdentifier(value); return *this;}
52
54
57 inline const Aws::Vector<LineItemRequest>& GetLineItems() const{ return m_lineItems; }
58 inline bool LineItemsHasBeenSet() const { return m_lineItemsHasBeenSet; }
59 inline void SetLineItems(const Aws::Vector<LineItemRequest>& value) { m_lineItemsHasBeenSet = true; m_lineItems = value; }
60 inline void SetLineItems(Aws::Vector<LineItemRequest>&& value) { m_lineItemsHasBeenSet = true; m_lineItems = std::move(value); }
61 inline CreateOrderRequest& WithLineItems(const Aws::Vector<LineItemRequest>& value) { SetLineItems(value); return *this;}
62 inline CreateOrderRequest& WithLineItems(Aws::Vector<LineItemRequest>&& value) { SetLineItems(std::move(value)); return *this;}
63 inline CreateOrderRequest& AddLineItems(const LineItemRequest& value) { m_lineItemsHasBeenSet = true; m_lineItems.push_back(value); return *this; }
64 inline CreateOrderRequest& AddLineItems(LineItemRequest&& value) { m_lineItemsHasBeenSet = true; m_lineItems.push_back(std::move(value)); return *this; }
66
68
71 inline const PaymentOption& GetPaymentOption() const{ return m_paymentOption; }
72 inline bool PaymentOptionHasBeenSet() const { return m_paymentOptionHasBeenSet; }
73 inline void SetPaymentOption(const PaymentOption& value) { m_paymentOptionHasBeenSet = true; m_paymentOption = value; }
74 inline void SetPaymentOption(PaymentOption&& value) { m_paymentOptionHasBeenSet = true; m_paymentOption = std::move(value); }
75 inline CreateOrderRequest& WithPaymentOption(const PaymentOption& value) { SetPaymentOption(value); return *this;}
76 inline CreateOrderRequest& WithPaymentOption(PaymentOption&& value) { SetPaymentOption(std::move(value)); return *this;}
78
80
83 inline const PaymentTerm& GetPaymentTerm() const{ return m_paymentTerm; }
84 inline bool PaymentTermHasBeenSet() const { return m_paymentTermHasBeenSet; }
85 inline void SetPaymentTerm(const PaymentTerm& value) { m_paymentTermHasBeenSet = true; m_paymentTerm = value; }
86 inline void SetPaymentTerm(PaymentTerm&& value) { m_paymentTermHasBeenSet = true; m_paymentTerm = std::move(value); }
87 inline CreateOrderRequest& WithPaymentTerm(const PaymentTerm& value) { SetPaymentTerm(value); return *this;}
88 inline CreateOrderRequest& WithPaymentTerm(PaymentTerm&& value) { SetPaymentTerm(std::move(value)); return *this;}
90 private:
91
92 Aws::String m_outpostIdentifier;
93 bool m_outpostIdentifierHasBeenSet = false;
94
96 bool m_lineItemsHasBeenSet = false;
97
98 PaymentOption m_paymentOption;
99 bool m_paymentOptionHasBeenSet = false;
100
101 PaymentTerm m_paymentTerm;
102 bool m_paymentTermHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace Outposts
107} // namespace Aws
CreateOrderRequest & WithPaymentOption(const PaymentOption &value)
const Aws::String & GetOutpostIdentifier() const
virtual const char * GetServiceRequestName() const override
CreateOrderRequest & WithOutpostIdentifier(const Aws::String &value)
CreateOrderRequest & WithPaymentTerm(PaymentTerm &&value)
CreateOrderRequest & WithPaymentOption(PaymentOption &&value)
void SetPaymentOption(PaymentOption &&value)
void SetPaymentOption(const PaymentOption &value)
CreateOrderRequest & WithLineItems(const Aws::Vector< LineItemRequest > &value)
CreateOrderRequest & AddLineItems(LineItemRequest &&value)
void SetLineItems(Aws::Vector< LineItemRequest > &&value)
void SetOutpostIdentifier(const Aws::String &value)
CreateOrderRequest & WithPaymentTerm(const PaymentTerm &value)
CreateOrderRequest & WithOutpostIdentifier(Aws::String &&value)
CreateOrderRequest & WithLineItems(Aws::Vector< LineItemRequest > &&value)
const Aws::Vector< LineItemRequest > & GetLineItems() const
void SetLineItems(const Aws::Vector< LineItemRequest > &value)
CreateOrderRequest & AddLineItems(const LineItemRequest &value)
AWS_OUTPOSTS_API Aws::String SerializePayload() const override
CreateOrderRequest & WithOutpostIdentifier(const char *value)
const PaymentOption & GetPaymentOption() const
void SetOutpostIdentifier(Aws::String &&value)
void SetPaymentTerm(const PaymentTerm &value)
const PaymentTerm & GetPaymentTerm() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector