AWS SDK for C++  1.8.71
AWS SDK for C++
AcknowledgeJobRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace CodePipeline
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 "AcknowledgeJob"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39 
40 
45  inline const Aws::String& GetJobId() const{ return m_jobId; }
46 
51  inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
52 
57  inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
58 
63  inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
64 
69  inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
70 
75  inline AcknowledgeJobRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
76 
81  inline AcknowledgeJobRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
82 
87  inline AcknowledgeJobRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
88 
89 
95  inline const Aws::String& GetNonce() const{ return m_nonce; }
96 
102  inline bool NonceHasBeenSet() const { return m_nonceHasBeenSet; }
103 
109  inline void SetNonce(const Aws::String& value) { m_nonceHasBeenSet = true; m_nonce = value; }
110 
116  inline void SetNonce(Aws::String&& value) { m_nonceHasBeenSet = true; m_nonce = std::move(value); }
117 
123  inline void SetNonce(const char* value) { m_nonceHasBeenSet = true; m_nonce.assign(value); }
124 
130  inline AcknowledgeJobRequest& WithNonce(const Aws::String& value) { SetNonce(value); return *this;}
131 
137  inline AcknowledgeJobRequest& WithNonce(Aws::String&& value) { SetNonce(std::move(value)); return *this;}
138 
144  inline AcknowledgeJobRequest& WithNonce(const char* value) { SetNonce(value); return *this;}
145 
146  private:
147 
148  Aws::String m_jobId;
149  bool m_jobIdHasBeenSet;
150 
151  Aws::String m_nonce;
152  bool m_nonceHasBeenSet;
153  };
154 
155 } // namespace Model
156 } // namespace CodePipeline
157 } // namespace Aws
AcknowledgeJobRequest & WithJobId(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
AcknowledgeJobRequest & WithJobId(const char *value)
AcknowledgeJobRequest & WithNonce(Aws::String &&value)
AcknowledgeJobRequest & WithNonce(const char *value)
#define AWS_CODEPIPELINE_API
AcknowledgeJobRequest & WithNonce(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AcknowledgeJobRequest & WithJobId(Aws::String &&value)
virtual const char * GetServiceRequestName() const override