AWS SDK for C++  0.12.9
AWS SDK for C++
Job.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace CodePipeline
30 {
31 namespace Model
32 {
33 
38  {
39  public:
40  Job();
41  Job(const Aws::Utils::Json::JsonValue& jsonValue);
42  Job& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
48  inline const Aws::String& GetId() const{ return m_id; }
49 
53  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
54 
58  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = value; }
59 
63  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
64 
68  inline Job& WithId(const Aws::String& value) { SetId(value); return *this;}
69 
73  inline Job& WithId(Aws::String&& value) { SetId(value); return *this;}
74 
78  inline Job& WithId(const char* value) { SetId(value); return *this;}
79 
83  inline const JobData& GetData() const{ return m_data; }
84 
88  inline void SetData(const JobData& value) { m_dataHasBeenSet = true; m_data = value; }
89 
93  inline void SetData(JobData&& value) { m_dataHasBeenSet = true; m_data = value; }
94 
98  inline Job& WithData(const JobData& value) { SetData(value); return *this;}
99 
103  inline Job& WithData(JobData&& value) { SetData(value); return *this;}
104 
110  inline const Aws::String& GetNonce() const{ return m_nonce; }
111 
117  inline void SetNonce(const Aws::String& value) { m_nonceHasBeenSet = true; m_nonce = value; }
118 
124  inline void SetNonce(Aws::String&& value) { m_nonceHasBeenSet = true; m_nonce = value; }
125 
131  inline void SetNonce(const char* value) { m_nonceHasBeenSet = true; m_nonce.assign(value); }
132 
138  inline Job& WithNonce(const Aws::String& value) { SetNonce(value); return *this;}
139 
145  inline Job& WithNonce(Aws::String&& value) { SetNonce(value); return *this;}
146 
152  inline Job& WithNonce(const char* value) { SetNonce(value); return *this;}
153 
157  inline const Aws::String& GetAccountId() const{ return m_accountId; }
158 
162  inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
163 
167  inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
168 
172  inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
173 
177  inline Job& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
178 
182  inline Job& WithAccountId(Aws::String&& value) { SetAccountId(value); return *this;}
183 
187  inline Job& WithAccountId(const char* value) { SetAccountId(value); return *this;}
188 
189  private:
190  Aws::String m_id;
191  bool m_idHasBeenSet;
192  JobData m_data;
193  bool m_dataHasBeenSet;
194  Aws::String m_nonce;
195  bool m_nonceHasBeenSet;
196  Aws::String m_accountId;
197  bool m_accountIdHasBeenSet;
198  };
199 
200 } // namespace Model
201 } // namespace CodePipeline
202 } // namespace Aws
void SetNonce(Aws::String &&value)
Definition: Job.h:124
void SetAccountId(Aws::String &&value)
Definition: Job.h:167
void SetData(const JobData &value)
Definition: Job.h:88
const Aws::String & GetNonce() const
Definition: Job.h:110
void SetAccountId(const char *value)
Definition: Job.h:172
Job & WithNonce(const char *value)
Definition: Job.h:152
Job & WithNonce(const Aws::String &value)
Definition: Job.h:138
void SetData(JobData &&value)
Definition: Job.h:93
Job & WithAccountId(const Aws::String &value)
Definition: Job.h:177
Job & WithId(Aws::String &&value)
Definition: Job.h:73
void SetNonce(const Aws::String &value)
Definition: Job.h:117
Job & WithId(const Aws::String &value)
Definition: Job.h:68
Job & WithData(const JobData &value)
Definition: Job.h:98
const Aws::String & GetId() const
Definition: Job.h:48
Job & WithAccountId(const char *value)
Definition: Job.h:187
#define AWS_CODEPIPELINE_API
const JobData & GetData() const
Definition: Job.h:83
const Aws::String & GetAccountId() const
Definition: Job.h:157
Job & WithData(JobData &&value)
Definition: Job.h:103
void SetId(const Aws::String &value)
Definition: Job.h:53
void SetAccountId(const Aws::String &value)
Definition: Job.h:162
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetId(Aws::String &&value)
Definition: Job.h:58
void SetNonce(const char *value)
Definition: Job.h:131
void SetId(const char *value)
Definition: Job.h:63
Job & WithAccountId(Aws::String &&value)
Definition: Job.h:182
Job & WithId(const char *value)
Definition: Job.h:78
JSON (JavaScript Object Notation).
Job & WithNonce(Aws::String &&value)
Definition: Job.h:145