AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ShippingDetails.h
1
6#pragma once
7#include <aws/snowball/Snowball_EXPORTS.h>
8#include <aws/snowball/model/ShippingOption.h>
9#include <aws/snowball/model/Shipment.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Snowball
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SNOWBALL_API ShippingDetails() = default;
37 AWS_SNOWBALL_API ShippingDetails(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SNOWBALL_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
57 inline ShippingOption GetShippingOption() const { return m_shippingOption; }
58 inline bool ShippingOptionHasBeenSet() const { return m_shippingOptionHasBeenSet; }
59 inline void SetShippingOption(ShippingOption value) { m_shippingOptionHasBeenSet = true; m_shippingOption = value; }
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) { m_inboundShipmentHasBeenSet = true; m_inboundShipment = std::forward<InboundShipmentT>(value); }
72 template<typename InboundShipmentT = Shipment>
73 ShippingDetails& WithInboundShipment(InboundShipmentT&& value) { SetInboundShipment(std::forward<InboundShipmentT>(value)); return *this;}
75
77
82 inline const Shipment& GetOutboundShipment() const { return m_outboundShipment; }
83 inline bool OutboundShipmentHasBeenSet() const { return m_outboundShipmentHasBeenSet; }
84 template<typename OutboundShipmentT = Shipment>
85 void SetOutboundShipment(OutboundShipmentT&& value) { m_outboundShipmentHasBeenSet = true; m_outboundShipment = std::forward<OutboundShipmentT>(value); }
86 template<typename OutboundShipmentT = Shipment>
87 ShippingDetails& WithOutboundShipment(OutboundShipmentT&& value) { SetOutboundShipment(std::forward<OutboundShipmentT>(value)); return *this;}
89 private:
90
92 bool m_shippingOptionHasBeenSet = false;
93
94 Shipment m_inboundShipment;
95 bool m_inboundShipmentHasBeenSet = false;
96
97 Shipment m_outboundShipment;
98 bool m_outboundShipmentHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace Snowball
103} // 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