AWS SDK for C++  0.14.3
AWS SDK for C++
ShippingDetails.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace Snowball
30 {
31 namespace Model
32 {
33 
39  {
40  public:
43  ShippingDetails& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
60  inline const ShippingOption& GetShippingOption() const{ return m_shippingOption; }
61 
76  inline void SetShippingOption(const ShippingOption& value) { m_shippingOptionHasBeenSet = true; m_shippingOption = value; }
77 
92  inline void SetShippingOption(ShippingOption&& value) { m_shippingOptionHasBeenSet = true; m_shippingOption = value; }
93 
108  inline ShippingDetails& WithShippingOption(const ShippingOption& value) { SetShippingOption(value); return *this;}
109 
124  inline ShippingDetails& WithShippingOption(ShippingOption&& value) { SetShippingOption(value); return *this;}
125 
130  inline const Shipment& GetInboundShipment() const{ return m_inboundShipment; }
131 
136  inline void SetInboundShipment(const Shipment& value) { m_inboundShipmentHasBeenSet = true; m_inboundShipment = value; }
137 
142  inline void SetInboundShipment(Shipment&& value) { m_inboundShipmentHasBeenSet = true; m_inboundShipment = value; }
143 
148  inline ShippingDetails& WithInboundShipment(const Shipment& value) { SetInboundShipment(value); return *this;}
149 
154  inline ShippingDetails& WithInboundShipment(Shipment&& value) { SetInboundShipment(value); return *this;}
155 
160  inline const Shipment& GetOutboundShipment() const{ return m_outboundShipment; }
161 
166  inline void SetOutboundShipment(const Shipment& value) { m_outboundShipmentHasBeenSet = true; m_outboundShipment = value; }
167 
172  inline void SetOutboundShipment(Shipment&& value) { m_outboundShipmentHasBeenSet = true; m_outboundShipment = value; }
173 
178  inline ShippingDetails& WithOutboundShipment(const Shipment& value) { SetOutboundShipment(value); return *this;}
179 
184  inline ShippingDetails& WithOutboundShipment(Shipment&& value) { SetOutboundShipment(value); return *this;}
185 
186  private:
187  ShippingOption m_shippingOption;
188  bool m_shippingOptionHasBeenSet;
189  Shipment m_inboundShipment;
190  bool m_inboundShipmentHasBeenSet;
191  Shipment m_outboundShipment;
192  bool m_outboundShipmentHasBeenSet;
193  };
194 
195 } // namespace Model
196 } // namespace Snowball
197 } // namespace Aws
void SetShippingOption(const ShippingOption &value)
ShippingDetails & WithShippingOption(const ShippingOption &value)
ShippingDetails & WithInboundShipment(Shipment &&value)
const Shipment & GetInboundShipment() const
ShippingDetails & WithShippingOption(ShippingOption &&value)
const Shipment & GetOutboundShipment() 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)
void SetInboundShipment(const Shipment &value)
void SetOutboundShipment(const Shipment &value)
const ShippingOption & GetShippingOption() const
JSON (JavaScript Object Notation).