AWS SDK for C++  1.9.40
AWS SDK for C++
CancelJobRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace ImportExport
15 {
16 namespace Model
17 {
18 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "CancelJob"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  protected:
38  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39 
40  public:
41 
42 
43  inline const Aws::String& GetJobId() const{ return m_jobId; }
44 
45 
46  inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
47 
48 
49  inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
50 
51 
52  inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
53 
54 
55  inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
56 
57 
58  inline CancelJobRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
59 
60 
61  inline CancelJobRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
62 
63 
64  inline CancelJobRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
65 
66 
67 
68  inline const Aws::String& GetAPIVersion() const{ return m_aPIVersion; }
69 
70 
71  inline bool APIVersionHasBeenSet() const { return m_aPIVersionHasBeenSet; }
72 
73 
74  inline void SetAPIVersion(const Aws::String& value) { m_aPIVersionHasBeenSet = true; m_aPIVersion = value; }
75 
76 
77  inline void SetAPIVersion(Aws::String&& value) { m_aPIVersionHasBeenSet = true; m_aPIVersion = std::move(value); }
78 
79 
80  inline void SetAPIVersion(const char* value) { m_aPIVersionHasBeenSet = true; m_aPIVersion.assign(value); }
81 
82 
83  inline CancelJobRequest& WithAPIVersion(const Aws::String& value) { SetAPIVersion(value); return *this;}
84 
85 
86  inline CancelJobRequest& WithAPIVersion(Aws::String&& value) { SetAPIVersion(std::move(value)); return *this;}
87 
88 
89  inline CancelJobRequest& WithAPIVersion(const char* value) { SetAPIVersion(value); return *this;}
90 
91  private:
92 
93  Aws::String m_jobId;
94  bool m_jobIdHasBeenSet;
95 
96  Aws::String m_aPIVersion;
97  bool m_aPIVersionHasBeenSet;
98  };
99 
100 } // namespace Model
101 } // namespace ImportExport
102 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::ImportExport::Model::CancelJobRequest::APIVersionHasBeenSet
bool APIVersionHasBeenSet() const
Definition: CancelJobRequest.h:71
Aws::ImportExport::Model::CancelJobRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ImportExport::Model::CancelJobRequest::WithAPIVersion
CancelJobRequest & WithAPIVersion(const char *value)
Definition: CancelJobRequest.h:89
Aws::ImportExport::Model::CancelJobRequest::SetAPIVersion
void SetAPIVersion(Aws::String &&value)
Definition: CancelJobRequest.h:77
ImportExport_EXPORTS.h
Aws::ImportExport::Model::CancelJobRequest::CancelJobRequest
CancelJobRequest()
Aws::ImportExport::Model::CancelJobRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CancelJobRequest.h:33
Aws::ImportExport::ImportExportRequest
Definition: ImportExportRequest.h:17
Aws::ImportExport::Model::CancelJobRequest::GetAPIVersion
const Aws::String & GetAPIVersion() const
Definition: CancelJobRequest.h:68
Aws::ImportExport::Model::CancelJobRequest::SetAPIVersion
void SetAPIVersion(const char *value)
Definition: CancelJobRequest.h:80
Aws::ImportExport::Model::CancelJobRequest::SetJobId
void SetJobId(const Aws::String &value)
Definition: CancelJobRequest.h:49
Aws::ImportExport::Model::CancelJobRequest::WithAPIVersion
CancelJobRequest & WithAPIVersion(const Aws::String &value)
Definition: CancelJobRequest.h:83
AWSString.h
Aws::ImportExport::Model::CancelJobRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::ImportExport::Model::CancelJobRequest::WithJobId
CancelJobRequest & WithJobId(const char *value)
Definition: CancelJobRequest.h:64
Aws::ImportExport::Model::CancelJobRequest::JobIdHasBeenSet
bool JobIdHasBeenSet() const
Definition: CancelJobRequest.h:46
Aws::ImportExport::Model::CancelJobRequest::SetAPIVersion
void SetAPIVersion(const Aws::String &value)
Definition: CancelJobRequest.h:74
Aws::ImportExport::Model::CancelJobRequest::WithJobId
CancelJobRequest & WithJobId(const Aws::String &value)
Definition: CancelJobRequest.h:58
ImportExportRequest.h
Aws::ImportExport::Model::CancelJobRequest::SetJobId
void SetJobId(Aws::String &&value)
Definition: CancelJobRequest.h:52
Aws::ImportExport::Model::CancelJobRequest
Definition: CancelJobRequest.h:25
Aws
Definition: AccessManagementClient.h:15
Aws::ImportExport::Model::CancelJobRequest::GetJobId
const Aws::String & GetJobId() const
Definition: CancelJobRequest.h:43
Aws::ImportExport::Model::CancelJobRequest::SetJobId
void SetJobId(const char *value)
Definition: CancelJobRequest.h:55
Aws::ImportExport::Model::CancelJobRequest::WithAPIVersion
CancelJobRequest & WithAPIVersion(Aws::String &&value)
Definition: CancelJobRequest.h:86
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWS_IMPORTEXPORT_API
#define AWS_IMPORTEXPORT_API
Definition: ImportExport_EXPORTS.h:28
Aws::ImportExport::Model::CancelJobRequest::WithJobId
CancelJobRequest & WithJobId(Aws::String &&value)
Definition: CancelJobRequest.h:61