AWS SDK for C++

AWS SDK for C++ Version 1.11.812

Loading...
Searching...
No Matches
ShippingDetails.h
1
6#pragma once
7#include <aws/crt/cbor/Cbor.h>
8#include <aws/snowball/Snowball_EXPORTS.h>
9#include <aws/snowball/model/Shipment.h>
10#include <aws/snowball/model/ShippingOption.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace Snowball {
21namespace Model {
22
30 public:
31 AWS_SNOWBALL_API ShippingDetails() = default;
32 AWS_SNOWBALL_API ShippingDetails(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_SNOWBALL_API ShippingDetails& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_SNOWBALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) 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=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_SNOWBALL_API ShippingDetails(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ShippingDetails & WithOutboundShipment(OutboundShipmentT &&value)
ShippingDetails & WithInboundShipment(InboundShipmentT &&value)
const Shipment & GetOutboundShipment() const
void SetInboundShipment(InboundShipmentT &&value)
void SetOutboundShipment(OutboundShipmentT &&value)
ShippingOption GetShippingOption() const
AWS_SNOWBALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
ShippingDetails & WithShippingOption(ShippingOption value)
void SetShippingOption(ShippingOption value)