AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
ShippingDetails.h
1
6#pragma once
7#include <aws/snowball/Snowball_EXPORTS.h>
8#include <aws/snowball/model/Shipment.h>
9#include <aws/snowball/model/ShippingOption.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Snowball {
21namespace Model {
22
30 public:
31 AWS_SNOWBALL_API ShippingDetails() = default;
32 AWS_SNOWBALL_API ShippingDetails(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SNOWBALL_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
51 inline ShippingOption GetShippingOption() const { return m_shippingOption; }
52 inline bool ShippingOptionHasBeenSet() const { return m_shippingOptionHasBeenSet; }
53 inline void SetShippingOption(ShippingOption value) {
54 m_shippingOptionHasBeenSet = true;
55 m_shippingOption = value;
56 }
58 SetShippingOption(value);
59 return *this;
60 }
62
64
68 inline const Shipment& GetInboundShipment() const { return m_inboundShipment; }
69 inline bool InboundShipmentHasBeenSet() const { return m_inboundShipmentHasBeenSet; }
70 template <typename InboundShipmentT = Shipment>
71 void SetInboundShipment(InboundShipmentT&& value) {
72 m_inboundShipmentHasBeenSet = true;
73 m_inboundShipment = std::forward<InboundShipmentT>(value);
74 }
75 template <typename InboundShipmentT = Shipment>
76 ShippingDetails& WithInboundShipment(InboundShipmentT&& value) {
77 SetInboundShipment(std::forward<InboundShipmentT>(value));
78 return *this;
79 }
81
83
88 inline const Shipment& GetOutboundShipment() const { return m_outboundShipment; }
89 inline bool OutboundShipmentHasBeenSet() const { return m_outboundShipmentHasBeenSet; }
90 template <typename OutboundShipmentT = Shipment>
91 void SetOutboundShipment(OutboundShipmentT&& value) {
92 m_outboundShipmentHasBeenSet = true;
93 m_outboundShipment = std::forward<OutboundShipmentT>(value);
94 }
95 template <typename OutboundShipmentT = Shipment>
96 ShippingDetails& WithOutboundShipment(OutboundShipmentT&& value) {
97 SetOutboundShipment(std::forward<OutboundShipmentT>(value));
98 return *this;
99 }
101 private:
102 ShippingOption m_shippingOption{ShippingOption::NOT_SET};
103
104 Shipment m_inboundShipment;
105
106 Shipment m_outboundShipment;
107 bool m_shippingOptionHasBeenSet = false;
108 bool m_inboundShipmentHasBeenSet = false;
109 bool m_outboundShipmentHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace Snowball
114} // namespace Aws
const Shipment & GetInboundShipment() const
AWS_SNOWBALL_API ShippingDetails()=default
AWS_SNOWBALL_API ShippingDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SNOWBALL_API ShippingDetails(Aws::Utils::Json::JsonView jsonValue)
ShippingDetails & WithOutboundShipment(OutboundShipmentT &&value)
ShippingDetails & WithInboundShipment(InboundShipmentT &&value)
AWS_SNOWBALL_API Aws::Utils::Json::JsonValue Jsonize() const
const Shipment & GetOutboundShipment() const
void SetInboundShipment(InboundShipmentT &&value)
void SetOutboundShipment(OutboundShipmentT &&value)
ShippingOption GetShippingOption() const
ShippingDetails & WithShippingOption(ShippingOption value)
void SetShippingOption(ShippingOption value)
Aws::Utils::Json::JsonValue JsonValue