AWS SDK for C++  1.8.71
AWS SDK for C++
StopJobRequest.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 "StopJob"; }
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 StopJobRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
68 
72  inline StopJobRequest& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
73 
77  inline StopJobRequest& 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 StopJobRequest& WithBranchName(const Aws::String& value) { SetBranchName(value); return *this;}
109 
113  inline StopJobRequest& WithBranchName(Aws::String&& value) { SetBranchName(std::move(value)); return *this;}
114 
118  inline StopJobRequest& 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 StopJobRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
150 
154  inline StopJobRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
155 
159  inline StopJobRequest& 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
void SetJobId(const Aws::String &value)
StopJobRequest & WithBranchName(Aws::String &&value)
void SetAppId(Aws::String &&value)
#define AWS_AMPLIFY_API
virtual const char * GetServiceRequestName() const override
StopJobRequest & WithBranchName(const char *value)
void SetBranchName(Aws::String &&value)
StopJobRequest & WithAppId(const Aws::String &value)
void SetAppId(const char *value)
void SetBranchName(const Aws::String &value)
void SetJobId(const char *value)
void SetAppId(const Aws::String &value)
const Aws::String & GetJobId() const
StopJobRequest & WithJobId(const Aws::String &value)
void SetJobId(Aws::String &&value)
StopJobRequest & WithAppId(Aws::String &&value)
const Aws::String & GetAppId() const
const Aws::String & GetBranchName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
StopJobRequest & WithJobId(const char *value)
StopJobRequest & WithBranchName(const Aws::String &value)
StopJobRequest & WithAppId(const char *value)
void SetBranchName(const char *value)
StopJobRequest & WithJobId(Aws::String &&value)