AWS SDK for C++  1.9.108
AWS SDK for C++
Shipment.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace Snowball
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetStatus() const{ return m_status; }
45 
49  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
50 
54  inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
55 
59  inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
60 
64  inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
65 
69  inline Shipment& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
70 
74  inline Shipment& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
75 
79  inline Shipment& WithStatus(const char* value) { SetStatus(value); return *this;}
80 
81 
88  inline const Aws::String& GetTrackingNumber() const{ return m_trackingNumber; }
89 
96  inline bool TrackingNumberHasBeenSet() const { return m_trackingNumberHasBeenSet; }
97 
104  inline void SetTrackingNumber(const Aws::String& value) { m_trackingNumberHasBeenSet = true; m_trackingNumber = value; }
105 
112  inline void SetTrackingNumber(Aws::String&& value) { m_trackingNumberHasBeenSet = true; m_trackingNumber = std::move(value); }
113 
120  inline void SetTrackingNumber(const char* value) { m_trackingNumberHasBeenSet = true; m_trackingNumber.assign(value); }
121 
128  inline Shipment& WithTrackingNumber(const Aws::String& value) { SetTrackingNumber(value); return *this;}
129 
136  inline Shipment& WithTrackingNumber(Aws::String&& value) { SetTrackingNumber(std::move(value)); return *this;}
137 
144  inline Shipment& WithTrackingNumber(const char* value) { SetTrackingNumber(value); return *this;}
145 
146  private:
147 
148  Aws::String m_status;
149  bool m_statusHasBeenSet;
150 
151  Aws::String m_trackingNumber;
152  bool m_trackingNumberHasBeenSet;
153  };
154 
155 } // namespace Model
156 } // namespace Snowball
157 } // namespace Aws
Aws::Snowball::Model::Shipment::Shipment
Shipment(Aws::Utils::Json::JsonView jsonValue)
Aws::Snowball::Model::Shipment::WithTrackingNumber
Shipment & WithTrackingNumber(Aws::String &&value)
Definition: Shipment.h:136
Aws::Snowball::Model::Shipment::operator=
Shipment & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Snowball::Model::Shipment::GetTrackingNumber
const Aws::String & GetTrackingNumber() const
Definition: Shipment.h:88
Aws::Snowball::Model::Shipment::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: Shipment.h:49
Aws::Snowball::Model::Shipment::WithTrackingNumber
Shipment & WithTrackingNumber(const char *value)
Definition: Shipment.h:144
Aws::Snowball::Model::Shipment::GetStatus
const Aws::String & GetStatus() const
Definition: Shipment.h:44
Aws::Snowball::Model::Shipment::TrackingNumberHasBeenSet
bool TrackingNumberHasBeenSet() const
Definition: Shipment.h:96
Aws::Snowball::Model::Shipment::SetStatus
void SetStatus(const char *value)
Definition: Shipment.h:64
Aws::Snowball::Model::Shipment::SetTrackingNumber
void SetTrackingNumber(Aws::String &&value)
Definition: Shipment.h:112
AWS_SNOWBALL_API
#define AWS_SNOWBALL_API
Definition: Snowball_EXPORTS.h:28
Aws::Snowball::Model::Shipment::WithStatus
Shipment & WithStatus(const char *value)
Definition: Shipment.h:79
Aws::Snowball::Model::Shipment::SetTrackingNumber
void SetTrackingNumber(const char *value)
Definition: Shipment.h:120
Aws::Snowball::Model::Shipment::WithStatus
Shipment & WithStatus(const Aws::String &value)
Definition: Shipment.h:69
Aws::Snowball::Model::Shipment
Definition: Shipment.h:33
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Snowball::Model::Shipment::SetTrackingNumber
void SetTrackingNumber(const Aws::String &value)
Definition: Shipment.h:104
Aws::Snowball::Model::Shipment::Shipment
Shipment()
Aws::Snowball::Model::Shipment::SetStatus
void SetStatus(const Aws::String &value)
Definition: Shipment.h:54
Aws::Snowball::Model::Shipment::WithTrackingNumber
Shipment & WithTrackingNumber(const Aws::String &value)
Definition: Shipment.h:128
Aws
Definition: AccessManagementClient.h:15
Aws::Snowball::Model::Shipment::SetStatus
void SetStatus(Aws::String &&value)
Definition: Shipment.h:59
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Snowball::Model::Shipment::WithStatus
Shipment & WithStatus(Aws::String &&value)
Definition: Shipment.h:74
Snowball_EXPORTS.h
Aws::Snowball::Model::Shipment::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const