AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CancelJobRunRequest.h
1
6#pragma once
7#include <aws/emr-serverless/EMRServerless_EXPORTS.h>
8#include <aws/emr-serverless/EMRServerlessRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Http
15{
16 class URI;
17} //namespace Http
18namespace EMRServerless
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_EMRSERVERLESS_API CancelJobRunRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CancelJobRun"; }
35
36 AWS_EMRSERVERLESS_API Aws::String SerializePayload() const override;
37
38 AWS_EMRSERVERLESS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39
40
42
45 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
46 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
47 template<typename ApplicationIdT = Aws::String>
48 void SetApplicationId(ApplicationIdT&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::forward<ApplicationIdT>(value); }
49 template<typename ApplicationIdT = Aws::String>
50 CancelJobRunRequest& WithApplicationId(ApplicationIdT&& value) { SetApplicationId(std::forward<ApplicationIdT>(value)); return *this;}
52
54
57 inline const Aws::String& GetJobRunId() const { return m_jobRunId; }
58 inline bool JobRunIdHasBeenSet() const { return m_jobRunIdHasBeenSet; }
59 template<typename JobRunIdT = Aws::String>
60 void SetJobRunId(JobRunIdT&& value) { m_jobRunIdHasBeenSet = true; m_jobRunId = std::forward<JobRunIdT>(value); }
61 template<typename JobRunIdT = Aws::String>
62 CancelJobRunRequest& WithJobRunId(JobRunIdT&& value) { SetJobRunId(std::forward<JobRunIdT>(value)); return *this;}
64
66
70 inline int GetShutdownGracePeriodInSeconds() const { return m_shutdownGracePeriodInSeconds; }
71 inline bool ShutdownGracePeriodInSecondsHasBeenSet() const { return m_shutdownGracePeriodInSecondsHasBeenSet; }
72 inline void SetShutdownGracePeriodInSeconds(int value) { m_shutdownGracePeriodInSecondsHasBeenSet = true; m_shutdownGracePeriodInSeconds = value; }
75 private:
76
77 Aws::String m_applicationId;
78 bool m_applicationIdHasBeenSet = false;
79
80 Aws::String m_jobRunId;
81 bool m_jobRunIdHasBeenSet = false;
82
83 int m_shutdownGracePeriodInSeconds{0};
84 bool m_shutdownGracePeriodInSecondsHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace EMRServerless
89} // 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