AWS SDK for C++  1.9.155
AWS SDK for C++
GetJobRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Amplify
15 {
16 namespace Model
17 {
18 
26  {
27  public:
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 "GetJob"; }
35 
36  Aws::String SerializePayload() const override;
37 
38 
42  inline const Aws::String& GetAppId() const{ return m_appId; }
43 
47  inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
48 
52  inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; }
53 
57  inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); }
58 
62  inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); }
63 
67  inline GetJobRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
68 
72  inline GetJobRequest& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
73 
77  inline GetJobRequest& WithAppId(const char* value) { SetAppId(value); return *this;}
78 
79 
83  inline const Aws::String& GetBranchName() const{ return m_branchName; }
84 
88  inline bool BranchNameHasBeenSet() const { return m_branchNameHasBeenSet; }
89 
93  inline void SetBranchName(const Aws::String& value) { m_branchNameHasBeenSet = true; m_branchName = value; }
94 
98  inline void SetBranchName(Aws::String&& value) { m_branchNameHasBeenSet = true; m_branchName = std::move(value); }
99 
103  inline void SetBranchName(const char* value) { m_branchNameHasBeenSet = true; m_branchName.assign(value); }
104 
108  inline GetJobRequest& WithBranchName(const Aws::String& value) { SetBranchName(value); return *this;}
109 
113  inline GetJobRequest& WithBranchName(Aws::String&& value) { SetBranchName(std::move(value)); return *this;}
114 
118  inline GetJobRequest& WithBranchName(const char* value) { SetBranchName(value); return *this;}
119 
120 
124  inline const Aws::String& GetJobId() const{ return m_jobId; }
125 
129  inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
130 
134  inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
135 
139  inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
140 
144  inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
145 
149  inline GetJobRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
150 
154  inline GetJobRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
155 
159  inline GetJobRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
160 
161  private:
162 
163  Aws::String m_appId;
164  bool m_appIdHasBeenSet;
165 
166  Aws::String m_branchName;
167  bool m_branchNameHasBeenSet;
168 
169  Aws::String m_jobId;
170  bool m_jobIdHasBeenSet;
171  };
172 
173 } // namespace Model
174 } // namespace Amplify
175 } // namespace Aws
Amplify_EXPORTS.h
Aws::Amplify::Model::GetJobRequest::SetAppId
void SetAppId(const char *value)
Definition: GetJobRequest.h:62
Aws::Amplify::Model::GetJobRequest::SetAppId
void SetAppId(Aws::String &&value)
Definition: GetJobRequest.h:57
Aws::Amplify::Model::GetJobRequest::WithJobId
GetJobRequest & WithJobId(const Aws::String &value)
Definition: GetJobRequest.h:149
Aws::Amplify::Model::GetJobRequest::SetJobId
void SetJobId(const char *value)
Definition: GetJobRequest.h:144
Aws::Amplify::Model::GetJobRequest::SetAppId
void SetAppId(const Aws::String &value)
Definition: GetJobRequest.h:52
Aws::Amplify::Model::GetJobRequest::WithAppId
GetJobRequest & WithAppId(const char *value)
Definition: GetJobRequest.h:77
Aws::Amplify::Model::GetJobRequest::WithJobId
GetJobRequest & WithJobId(const char *value)
Definition: GetJobRequest.h:159
Aws::Amplify::Model::GetJobRequest::SetBranchName
void SetBranchName(const Aws::String &value)
Definition: GetJobRequest.h:93
AmplifyRequest.h
Aws::Amplify::Model::GetJobRequest::SetJobId
void SetJobId(const Aws::String &value)
Definition: GetJobRequest.h:134
Aws::Amplify::AmplifyRequest
Definition: AmplifyRequest.h:17
Aws::Amplify::Model::GetJobRequest::SetBranchName
void SetBranchName(Aws::String &&value)
Definition: GetJobRequest.h:98
Aws::Amplify::Model::GetJobRequest::GetAppId
const Aws::String & GetAppId() const
Definition: GetJobRequest.h:42
Aws::Amplify::Model::GetJobRequest::BranchNameHasBeenSet
bool BranchNameHasBeenSet() const
Definition: GetJobRequest.h:88
Aws::Amplify::Model::GetJobRequest::WithAppId
GetJobRequest & WithAppId(Aws::String &&value)
Definition: GetJobRequest.h:72
Aws::Amplify::Model::GetJobRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetJobRequest.h:34
Aws::Amplify::Model::GetJobRequest::JobIdHasBeenSet
bool JobIdHasBeenSet() const
Definition: GetJobRequest.h:129
Aws::Amplify::Model::GetJobRequest
Definition: GetJobRequest.h:26
Aws::Amplify::Model::GetJobRequest::WithBranchName
GetJobRequest & WithBranchName(Aws::String &&value)
Definition: GetJobRequest.h:113
Aws::Amplify::Model::GetJobRequest::GetBranchName
const Aws::String & GetBranchName() const
Definition: GetJobRequest.h:83
AWSString.h
Aws::Amplify::Model::GetJobRequest::AppIdHasBeenSet
bool AppIdHasBeenSet() const
Definition: GetJobRequest.h:47
Aws::Amplify::Model::GetJobRequest::WithBranchName
GetJobRequest & WithBranchName(const char *value)
Definition: GetJobRequest.h:118
Aws::Amplify::Model::GetJobRequest::WithBranchName
GetJobRequest & WithBranchName(const Aws::String &value)
Definition: GetJobRequest.h:108
Aws::Amplify::Model::GetJobRequest::WithJobId
GetJobRequest & WithJobId(Aws::String &&value)
Definition: GetJobRequest.h:154
Aws::Amplify::Model::GetJobRequest::SetBranchName
void SetBranchName(const char *value)
Definition: GetJobRequest.h:103
Aws::Amplify::Model::GetJobRequest::WithAppId
GetJobRequest & WithAppId(const Aws::String &value)
Definition: GetJobRequest.h:67
Aws::Amplify::Model::GetJobRequest::GetJobRequest
GetJobRequest()
Aws::Amplify::Model::GetJobRequest::SetJobId
void SetJobId(Aws::String &&value)
Definition: GetJobRequest.h:139
Aws::Amplify::Model::GetJobRequest::GetJobId
const Aws::String & GetJobId() const
Definition: GetJobRequest.h:124
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Amplify::Model::GetJobRequest::SerializePayload
Aws::String SerializePayload() const override
AWS_AMPLIFY_API
#define AWS_AMPLIFY_API
Definition: Amplify_EXPORTS.h:28