AWS SDK for C++  1.9.109
AWS SDK for C++
UpdateJobShipmentStateRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Snowball
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "UpdateJobShipmentState"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
42  inline const Aws::String& GetJobId() const{ return m_jobId; }
43 
48  inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
49 
54  inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
55 
60  inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
61 
66  inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
67 
72  inline UpdateJobShipmentStateRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
73 
78  inline UpdateJobShipmentStateRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
79 
84  inline UpdateJobShipmentStateRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
85 
86 
92  inline const ShipmentState& GetShipmentState() const{ return m_shipmentState; }
93 
99  inline bool ShipmentStateHasBeenSet() const { return m_shipmentStateHasBeenSet; }
100 
106  inline void SetShipmentState(const ShipmentState& value) { m_shipmentStateHasBeenSet = true; m_shipmentState = value; }
107 
113  inline void SetShipmentState(ShipmentState&& value) { m_shipmentStateHasBeenSet = true; m_shipmentState = std::move(value); }
114 
120  inline UpdateJobShipmentStateRequest& WithShipmentState(const ShipmentState& value) { SetShipmentState(value); return *this;}
121 
127  inline UpdateJobShipmentStateRequest& WithShipmentState(ShipmentState&& value) { SetShipmentState(std::move(value)); return *this;}
128 
129  private:
130 
131  Aws::String m_jobId;
132  bool m_jobIdHasBeenSet;
133 
134  ShipmentState m_shipmentState;
135  bool m_shipmentStateHasBeenSet;
136  };
137 
138 } // namespace Model
139 } // namespace Snowball
140 } // namespace Aws
Aws::Snowball::Model::UpdateJobShipmentStateRequest::SetShipmentState
void SetShipmentState(const ShipmentState &value)
Definition: UpdateJobShipmentStateRequest.h:106
Aws::Snowball::Model::UpdateJobShipmentStateRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Snowball::Model::UpdateJobShipmentStateRequest::WithShipmentState
UpdateJobShipmentStateRequest & WithShipmentState(ShipmentState &&value)
Definition: UpdateJobShipmentStateRequest.h:127
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Snowball::Model::UpdateJobShipmentStateRequest::WithJobId
UpdateJobShipmentStateRequest & WithJobId(Aws::String &&value)
Definition: UpdateJobShipmentStateRequest.h:78
Aws::Snowball::Model::UpdateJobShipmentStateRequest::GetJobId
const Aws::String & GetJobId() const
Definition: UpdateJobShipmentStateRequest.h:42
Aws::Snowball::Model::UpdateJobShipmentStateRequest::SetJobId
void SetJobId(const Aws::String &value)
Definition: UpdateJobShipmentStateRequest.h:54
ShipmentState.h
Aws::Snowball::Model::UpdateJobShipmentStateRequest::UpdateJobShipmentStateRequest
UpdateJobShipmentStateRequest()
Aws::Snowball::Model::UpdateJobShipmentStateRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_SNOWBALL_API
#define AWS_SNOWBALL_API
Definition: Snowball_EXPORTS.h:28
SnowballRequest.h
Aws::Snowball::Model::UpdateJobShipmentStateRequest::JobIdHasBeenSet
bool JobIdHasBeenSet() const
Definition: UpdateJobShipmentStateRequest.h:48
Aws::Snowball::Model::UpdateJobShipmentStateRequest::GetShipmentState
const ShipmentState & GetShipmentState() const
Definition: UpdateJobShipmentStateRequest.h:92
Aws::Snowball::Model::UpdateJobShipmentStateRequest::SetShipmentState
void SetShipmentState(ShipmentState &&value)
Definition: UpdateJobShipmentStateRequest.h:113
Aws::Snowball::Model::UpdateJobShipmentStateRequest::WithShipmentState
UpdateJobShipmentStateRequest & WithShipmentState(const ShipmentState &value)
Definition: UpdateJobShipmentStateRequest.h:120
Aws::Snowball::Model::UpdateJobShipmentStateRequest::SetJobId
void SetJobId(Aws::String &&value)
Definition: UpdateJobShipmentStateRequest.h:60
Aws::Snowball::Model::UpdateJobShipmentStateRequest::ShipmentStateHasBeenSet
bool ShipmentStateHasBeenSet() const
Definition: UpdateJobShipmentStateRequest.h:99
Aws::Snowball::Model::UpdateJobShipmentStateRequest::SetJobId
void SetJobId(const char *value)
Definition: UpdateJobShipmentStateRequest.h:66
AWSString.h
Aws::Snowball::Model::UpdateJobShipmentStateRequest
Definition: UpdateJobShipmentStateRequest.h:23
Aws::Snowball::SnowballRequest
Definition: SnowballRequest.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::Snowball::Model::UpdateJobShipmentStateRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateJobShipmentStateRequest.h:31
Aws::Snowball::Model::ShipmentState
ShipmentState
Definition: ShipmentState.h:17
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Snowball_EXPORTS.h
Aws::Snowball::Model::UpdateJobShipmentStateRequest::WithJobId
UpdateJobShipmentStateRequest & WithJobId(const char *value)
Definition: UpdateJobShipmentStateRequest.h:84
Aws::Snowball::Model::UpdateJobShipmentStateRequest::WithJobId
UpdateJobShipmentStateRequest & WithJobId(const Aws::String &value)
Definition: UpdateJobShipmentStateRequest.h:72