AWS SDK for C++  1.8.95
AWS SDK for C++
ShippingDetails.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Snowball
23 {
24 namespace Model
25 {
26 
34  {
35  public:
38  ShippingDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
39  Aws::Utils::Json::JsonValue Jsonize() const;
40 
41 
56  inline const ShippingOption& GetShippingOption() const{ return m_shippingOption; }
57 
72  inline bool ShippingOptionHasBeenSet() const { return m_shippingOptionHasBeenSet; }
73 
88  inline void SetShippingOption(const ShippingOption& value) { m_shippingOptionHasBeenSet = true; m_shippingOption = value; }
89 
104  inline void SetShippingOption(ShippingOption&& value) { m_shippingOptionHasBeenSet = true; m_shippingOption = std::move(value); }
105 
120  inline ShippingDetails& WithShippingOption(const ShippingOption& value) { SetShippingOption(value); return *this;}
121 
136  inline ShippingDetails& WithShippingOption(ShippingOption&& value) { SetShippingOption(std::move(value)); return *this;}
137 
138 
143  inline const Shipment& GetInboundShipment() const{ return m_inboundShipment; }
144 
149  inline bool InboundShipmentHasBeenSet() const { return m_inboundShipmentHasBeenSet; }
150 
155  inline void SetInboundShipment(const Shipment& value) { m_inboundShipmentHasBeenSet = true; m_inboundShipment = value; }
156 
161  inline void SetInboundShipment(Shipment&& value) { m_inboundShipmentHasBeenSet = true; m_inboundShipment = std::move(value); }
162 
167  inline ShippingDetails& WithInboundShipment(const Shipment& value) { SetInboundShipment(value); return *this;}
168 
173  inline ShippingDetails& WithInboundShipment(Shipment&& value) { SetInboundShipment(std::move(value)); return *this;}
174 
175 
181  inline const Shipment& GetOutboundShipment() const{ return m_outboundShipment; }
182 
188  inline bool OutboundShipmentHasBeenSet() const { return m_outboundShipmentHasBeenSet; }
189 
195  inline void SetOutboundShipment(const Shipment& value) { m_outboundShipmentHasBeenSet = true; m_outboundShipment = value; }
196 
202  inline void SetOutboundShipment(Shipment&& value) { m_outboundShipmentHasBeenSet = true; m_outboundShipment = std::move(value); }
203 
209  inline ShippingDetails& WithOutboundShipment(const Shipment& value) { SetOutboundShipment(value); return *this;}
210 
216  inline ShippingDetails& WithOutboundShipment(Shipment&& value) { SetOutboundShipment(std::move(value)); return *this;}
217 
218  private:
219 
220  ShippingOption m_shippingOption;
221  bool m_shippingOptionHasBeenSet;
222 
223  Shipment m_inboundShipment;
224  bool m_inboundShipmentHasBeenSet;
225 
226  Shipment m_outboundShipment;
227  bool m_outboundShipmentHasBeenSet;
228  };
229 
230 } // namespace Model
231 } // namespace Snowball
232 } // namespace Aws
void SetShippingOption(const ShippingOption &value)
ShippingDetails & WithShippingOption(const ShippingOption &value)
ShippingDetails & WithInboundShipment(Shipment &&value)
ShippingDetails & WithShippingOption(ShippingOption &&value)
const Shipment & GetInboundShipment() const
const ShippingOption & GetShippingOption() const
ShippingDetails & WithOutboundShipment(const Shipment &value)
#define AWS_SNOWBALL_API
void SetShippingOption(ShippingOption &&value)
ShippingDetails & WithOutboundShipment(Shipment &&value)
void SetInboundShipment(Shipment &&value)
ShippingDetails & WithInboundShipment(const Shipment &value)
void SetOutboundShipment(Shipment &&value)
const Shipment & GetOutboundShipment() const
void SetInboundShipment(const Shipment &value)
void SetOutboundShipment(const Shipment &value)