AWS SDK for C++

AWS SDK for C++ Version 1.11.936

Loading...
Searching...
No Matches
GetJobRunRequest.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 GetJobRunRequest() = 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 "GetJobRun"; }
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 GetJobRunRequest& 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 GetJobRunRequest& WithJobRunId(JobRunIdT&& value) {
67 SetJobRunId(std::forward<JobRunIdT>(value));
68 return *this;
69 }
71
73
77 inline int GetAttempt() const { return m_attempt; }
78 inline bool AttemptHasBeenSet() const { return m_attemptHasBeenSet; }
79 inline void SetAttempt(int value) {
80 m_attemptHasBeenSet = true;
81 m_attempt = value;
82 }
83 inline GetJobRunRequest& WithAttempt(int value) {
84 SetAttempt(value);
85 return *this;
86 }
88 private:
89 Aws::String m_applicationId;
90
91 Aws::String m_jobRunId;
92
93 int m_attempt{0};
94 bool m_applicationIdHasBeenSet = false;
95 bool m_jobRunIdHasBeenSet = false;
96 bool m_attemptHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace EMRServerless
101} // namespace Aws
AWS_EMRSERVERLESS_API Aws::String SerializePayload() const override
AWS_EMRSERVERLESS_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_EMRSERVERLESS_API GetJobRunRequest()=default
GetJobRunRequest & WithApplicationId(ApplicationIdT &&value)
GetJobRunRequest & WithAttempt(int value)
GetJobRunRequest & WithJobRunId(JobRunIdT &&value)
const Aws::String & GetApplicationId() const
void SetApplicationId(ApplicationIdT &&value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String