AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
GetJobRunRequest.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 GetJobRunRequest() = 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 "GetJobRun"; }
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 GetJobRunRequest& 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 GetJobRunRequest& WithJobRunId(JobRunIdT&& value) { SetJobRunId(std::forward<JobRunIdT>(value)); return *this;}
64
66
70 inline int GetAttempt() const { return m_attempt; }
71 inline bool AttemptHasBeenSet() const { return m_attemptHasBeenSet; }
72 inline void SetAttempt(int value) { m_attemptHasBeenSet = true; m_attempt = value; }
73 inline GetJobRunRequest& WithAttempt(int value) { SetAttempt(value); return *this;}
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_attempt{0};
84 bool m_attemptHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace EMRServerless
89} // 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