AWS SDK for C++  1.9.109
AWS SDK for C++
CreateReturnShippingLabelRequest.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 "CreateReturnShippingLabel"; }
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 CreateReturnShippingLabelRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
73 
78  inline CreateReturnShippingLabelRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
79 
84  inline CreateReturnShippingLabelRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
85 
86 
92  inline const ShippingOption& GetShippingOption() const{ return m_shippingOption; }
93 
99  inline bool ShippingOptionHasBeenSet() const { return m_shippingOptionHasBeenSet; }
100 
106  inline void SetShippingOption(const ShippingOption& value) { m_shippingOptionHasBeenSet = true; m_shippingOption = value; }
107 
113  inline void SetShippingOption(ShippingOption&& value) { m_shippingOptionHasBeenSet = true; m_shippingOption = std::move(value); }
114 
120  inline CreateReturnShippingLabelRequest& WithShippingOption(const ShippingOption& value) { SetShippingOption(value); return *this;}
121 
127  inline CreateReturnShippingLabelRequest& WithShippingOption(ShippingOption&& value) { SetShippingOption(std::move(value)); return *this;}
128 
129  private:
130 
131  Aws::String m_jobId;
132  bool m_jobIdHasBeenSet;
133 
134  ShippingOption m_shippingOption;
135  bool m_shippingOptionHasBeenSet;
136  };
137 
138 } // namespace Model
139 } // namespace Snowball
140 } // namespace Aws
Aws::Snowball::Model::CreateReturnShippingLabelRequest::ShippingOptionHasBeenSet
bool ShippingOptionHasBeenSet() const
Definition: CreateReturnShippingLabelRequest.h:99
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Snowball::Model::CreateReturnShippingLabelRequest::SetJobId
void SetJobId(const char *value)
Definition: CreateReturnShippingLabelRequest.h:66
Aws::Snowball::Model::CreateReturnShippingLabelRequest::JobIdHasBeenSet
bool JobIdHasBeenSet() const
Definition: CreateReturnShippingLabelRequest.h:48
ShippingOption.h
Aws::Snowball::Model::CreateReturnShippingLabelRequest::WithShippingOption
CreateReturnShippingLabelRequest & WithShippingOption(const ShippingOption &value)
Definition: CreateReturnShippingLabelRequest.h:120
AWS_SNOWBALL_API
#define AWS_SNOWBALL_API
Definition: Snowball_EXPORTS.h:28
SnowballRequest.h
Aws::Snowball::Model::CreateReturnShippingLabelRequest::WithJobId
CreateReturnShippingLabelRequest & WithJobId(const char *value)
Definition: CreateReturnShippingLabelRequest.h:84
Aws::Snowball::Model::CreateReturnShippingLabelRequest::WithJobId
CreateReturnShippingLabelRequest & WithJobId(Aws::String &&value)
Definition: CreateReturnShippingLabelRequest.h:78
Aws::Snowball::Model::CreateReturnShippingLabelRequest::SetJobId
void SetJobId(Aws::String &&value)
Definition: CreateReturnShippingLabelRequest.h:60
Aws::Snowball::Model::CreateReturnShippingLabelRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateReturnShippingLabelRequest.h:31
Aws::Snowball::Model::CreateReturnShippingLabelRequest::CreateReturnShippingLabelRequest
CreateReturnShippingLabelRequest()
AWSString.h
Aws::Snowball::Model::CreateReturnShippingLabelRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Snowball::Model::CreateReturnShippingLabelRequest::WithShippingOption
CreateReturnShippingLabelRequest & WithShippingOption(ShippingOption &&value)
Definition: CreateReturnShippingLabelRequest.h:127
Aws::Snowball::Model::CreateReturnShippingLabelRequest::GetJobId
const Aws::String & GetJobId() const
Definition: CreateReturnShippingLabelRequest.h:42
Aws::Snowball::Model::CreateReturnShippingLabelRequest::SetJobId
void SetJobId(const Aws::String &value)
Definition: CreateReturnShippingLabelRequest.h:54
Aws::Snowball::SnowballRequest
Definition: SnowballRequest.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::Snowball::Model::CreateReturnShippingLabelRequest::WithJobId
CreateReturnShippingLabelRequest & WithJobId(const Aws::String &value)
Definition: CreateReturnShippingLabelRequest.h:72
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Snowball::Model::CreateReturnShippingLabelRequest::SetShippingOption
void SetShippingOption(const ShippingOption &value)
Definition: CreateReturnShippingLabelRequest.h:106
Aws::Snowball::Model::CreateReturnShippingLabelRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Snowball::Model::CreateReturnShippingLabelRequest
Definition: CreateReturnShippingLabelRequest.h:23
Snowball_EXPORTS.h
Aws::Snowball::Model::CreateReturnShippingLabelRequest::GetShippingOption
const ShippingOption & GetShippingOption() const
Definition: CreateReturnShippingLabelRequest.h:92
Aws::Snowball::Model::CreateReturnShippingLabelRequest::SetShippingOption
void SetShippingOption(ShippingOption &&value)
Definition: CreateReturnShippingLabelRequest.h:113
Aws::Snowball::Model::ShippingOption
ShippingOption
Definition: ShippingOption.h:17