AWS SDK for C++

AWS SDK for C++ Version 1.11.936

Loading...
Searching...
No Matches
CancelJobRunRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/emr-serverless/EMRServerlessRequest.h>
9#include <aws/emr-serverless/EMRServerless_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Http {
15class URI;
16} // namespace Http
17namespace EMRServerless {
18namespace Model {
19
23 public:
24 AWS_EMRSERVERLESS_API CancelJobRunRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CancelJobRun"; }
31
32 AWS_EMRSERVERLESS_API Aws::String SerializePayload() const override;
33
34 AWS_EMRSERVERLESS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
35
37
40 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
41 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
42 template <typename ApplicationIdT = Aws::String>
43 void SetApplicationId(ApplicationIdT&& value) {
44 m_applicationIdHasBeenSet = true;
45 m_applicationId = std::forward<ApplicationIdT>(value);
46 }
47 template <typename ApplicationIdT = Aws::String>
48 CancelJobRunRequest& WithApplicationId(ApplicationIdT&& value) {
49 SetApplicationId(std::forward<ApplicationIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetJobRunId() const { return m_jobRunId; }
59 inline bool JobRunIdHasBeenSet() const { return m_jobRunIdHasBeenSet; }
60 template <typename JobRunIdT = Aws::String>
61 void SetJobRunId(JobRunIdT&& value) {
62 m_jobRunIdHasBeenSet = true;
63 m_jobRunId = std::forward<JobRunIdT>(value);
64 }
65 template <typename JobRunIdT = Aws::String>
66 CancelJobRunRequest& WithJobRunId(JobRunIdT&& value) {
67 SetJobRunId(std::forward<JobRunIdT>(value));
68 return *this;
69 }
71
73
77 inline int GetShutdownGracePeriodInSeconds() const { return m_shutdownGracePeriodInSeconds; }
78 inline bool ShutdownGracePeriodInSecondsHasBeenSet() const { return m_shutdownGracePeriodInSecondsHasBeenSet; }
79 inline void SetShutdownGracePeriodInSeconds(int value) {
80 m_shutdownGracePeriodInSecondsHasBeenSet = true;
81 m_shutdownGracePeriodInSeconds = value;
82 }
85 return *this;
86 }
88 private:
89 Aws::String m_applicationId;
90
91 Aws::String m_jobRunId;
92
93 int m_shutdownGracePeriodInSeconds{0};
94 bool m_applicationIdHasBeenSet = false;
95 bool m_jobRunIdHasBeenSet = false;
96 bool m_shutdownGracePeriodInSecondsHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace EMRServerless
101} // namespace Aws
CancelJobRunRequest & WithJobRunId(JobRunIdT &&value)
AWS_EMRSERVERLESS_API CancelJobRunRequest()=default
AWS_EMRSERVERLESS_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
virtual const char * GetServiceRequestName() const override
CancelJobRunRequest & WithApplicationId(ApplicationIdT &&value)
AWS_EMRSERVERLESS_API Aws::String SerializePayload() const override
CancelJobRunRequest & WithShutdownGracePeriodInSeconds(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String