AWS SDK for C++

AWS SDK for C++ Version 1.11.710

Loading...
Searching...
No Matches
ShipmentInformation.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/outposts/Outposts_EXPORTS.h>
9#include <aws/outposts/model/ShipmentCarrier.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Outposts {
21namespace Model {
22
29 public:
30 AWS_OUTPOSTS_API ShipmentInformation() = default;
33 AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetShipmentTrackingNumber() const { return m_shipmentTrackingNumber; }
40 inline bool ShipmentTrackingNumberHasBeenSet() const { return m_shipmentTrackingNumberHasBeenSet; }
41 template <typename ShipmentTrackingNumberT = Aws::String>
42 void SetShipmentTrackingNumber(ShipmentTrackingNumberT&& value) {
43 m_shipmentTrackingNumberHasBeenSet = true;
44 m_shipmentTrackingNumber = std::forward<ShipmentTrackingNumberT>(value);
45 }
46 template <typename ShipmentTrackingNumberT = Aws::String>
47 ShipmentInformation& WithShipmentTrackingNumber(ShipmentTrackingNumberT&& value) {
48 SetShipmentTrackingNumber(std::forward<ShipmentTrackingNumberT>(value));
49 return *this;
50 }
52
54
57 inline ShipmentCarrier GetShipmentCarrier() const { return m_shipmentCarrier; }
58 inline bool ShipmentCarrierHasBeenSet() const { return m_shipmentCarrierHasBeenSet; }
60 m_shipmentCarrierHasBeenSet = true;
61 m_shipmentCarrier = value;
62 }
64 SetShipmentCarrier(value);
65 return *this;
66 }
68 private:
69 Aws::String m_shipmentTrackingNumber;
70
72 bool m_shipmentTrackingNumberHasBeenSet = false;
73 bool m_shipmentCarrierHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace Outposts
78} // namespace Aws
AWS_OUTPOSTS_API ShipmentInformation(Aws::Utils::Json::JsonView jsonValue)
void SetShipmentTrackingNumber(ShipmentTrackingNumberT &&value)
ShipmentInformation & WithShipmentCarrier(ShipmentCarrier value)
AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OUTPOSTS_API ShipmentInformation()=default
ShipmentInformation & WithShipmentTrackingNumber(ShipmentTrackingNumberT &&value)
const Aws::String & GetShipmentTrackingNumber() const
void SetShipmentCarrier(ShipmentCarrier value)
AWS_OUTPOSTS_API ShipmentInformation & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue