AWS SDK for C++  0.14.3
AWS SDK for C++
Shipment.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
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace Snowball
29 {
30 namespace Model
31 {
32 
38  {
39  public:
40  Shipment();
41  Shipment(const Aws::Utils::Json::JsonValue& jsonValue);
42  Shipment& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
49  inline const Aws::String& GetStatus() const{ return m_status; }
50 
55  inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
56 
61  inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = value; }
62 
67  inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
68 
73  inline Shipment& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
74 
79  inline Shipment& WithStatus(Aws::String&& value) { SetStatus(value); return *this;}
80 
85  inline Shipment& WithStatus(const char* value) { SetStatus(value); return *this;}
86 
93  inline const Aws::String& GetTrackingNumber() const{ return m_trackingNumber; }
94 
101  inline void SetTrackingNumber(const Aws::String& value) { m_trackingNumberHasBeenSet = true; m_trackingNumber = value; }
102 
109  inline void SetTrackingNumber(Aws::String&& value) { m_trackingNumberHasBeenSet = true; m_trackingNumber = value; }
110 
117  inline void SetTrackingNumber(const char* value) { m_trackingNumberHasBeenSet = true; m_trackingNumber.assign(value); }
118 
125  inline Shipment& WithTrackingNumber(const Aws::String& value) { SetTrackingNumber(value); return *this;}
126 
133  inline Shipment& WithTrackingNumber(Aws::String&& value) { SetTrackingNumber(value); return *this;}
134 
141  inline Shipment& WithTrackingNumber(const char* value) { SetTrackingNumber(value); return *this;}
142 
143  private:
144  Aws::String m_status;
145  bool m_statusHasBeenSet;
146  Aws::String m_trackingNumber;
147  bool m_trackingNumberHasBeenSet;
148  };
149 
150 } // namespace Model
151 } // namespace Snowball
152 } // namespace Aws
Shipment & WithStatus(Aws::String &&value)
Definition: Shipment.h:79
void SetStatus(const char *value)
Definition: Shipment.h:67
void SetStatus(Aws::String &&value)
Definition: Shipment.h:61
Shipment & WithTrackingNumber(const Aws::String &value)
Definition: Shipment.h:125
Shipment & WithTrackingNumber(Aws::String &&value)
Definition: Shipment.h:133
void SetTrackingNumber(const Aws::String &value)
Definition: Shipment.h:101
void SetTrackingNumber(const char *value)
Definition: Shipment.h:117
const Aws::String & GetTrackingNumber() const
Definition: Shipment.h:93
Shipment & WithStatus(const char *value)
Definition: Shipment.h:85
#define AWS_SNOWBALL_API
Shipment & WithTrackingNumber(const char *value)
Definition: Shipment.h:141
Shipment & WithStatus(const Aws::String &value)
Definition: Shipment.h:73
const Aws::String & GetStatus() const
Definition: Shipment.h:49
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetTrackingNumber(Aws::String &&value)
Definition: Shipment.h:109
void SetStatus(const Aws::String &value)
Definition: Shipment.h:55
JSON (JavaScript Object Notation).