AWS SDK for C++  0.12.9
AWS SDK for C++
JobDetails.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  JobDetails();
41  JobDetails(const Aws::Utils::Json::JsonValue& jsonValue);
42  JobDetails& 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 JobDetails& WithId(const Aws::String& value) { SetId(value); return *this;}
69 
73  inline JobDetails& WithId(Aws::String&& value) { SetId(value); return *this;}
74 
78  inline JobDetails& WithId(const char* value) { SetId(value); return *this;}
79 
80 
81  inline const JobData& GetData() const{ return m_data; }
82 
83 
84  inline void SetData(const JobData& value) { m_dataHasBeenSet = true; m_data = value; }
85 
86 
87  inline void SetData(JobData&& value) { m_dataHasBeenSet = true; m_data = value; }
88 
89 
90  inline JobDetails& WithData(const JobData& value) { SetData(value); return *this;}
91 
92 
93  inline JobDetails& WithData(JobData&& value) { SetData(value); return *this;}
94 
98  inline const Aws::String& GetAccountId() const{ return m_accountId; }
99 
103  inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
104 
108  inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
109 
113  inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
114 
118  inline JobDetails& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
119 
123  inline JobDetails& WithAccountId(Aws::String&& value) { SetAccountId(value); return *this;}
124 
128  inline JobDetails& WithAccountId(const char* value) { SetAccountId(value); return *this;}
129 
130  private:
131  Aws::String m_id;
132  bool m_idHasBeenSet;
133  JobData m_data;
134  bool m_dataHasBeenSet;
135  Aws::String m_accountId;
136  bool m_accountIdHasBeenSet;
137  };
138 
139 } // namespace Model
140 } // namespace CodePipeline
141 } // namespace Aws
JobDetails & WithData(JobData &&value)
Definition: JobDetails.h:93
void SetId(const char *value)
Definition: JobDetails.h:63
JobDetails & WithId(const Aws::String &value)
Definition: JobDetails.h:68
void SetData(JobData &&value)
Definition: JobDetails.h:87
void SetAccountId(const char *value)
Definition: JobDetails.h:113
const JobData & GetData() const
Definition: JobDetails.h:81
JobDetails & WithId(const char *value)
Definition: JobDetails.h:78
JobDetails & WithAccountId(const char *value)
Definition: JobDetails.h:128
JobDetails & WithData(const JobData &value)
Definition: JobDetails.h:90
void SetAccountId(Aws::String &&value)
Definition: JobDetails.h:108
JobDetails & WithAccountId(const Aws::String &value)
Definition: JobDetails.h:118
void SetId(Aws::String &&value)
Definition: JobDetails.h:58
#define AWS_CODEPIPELINE_API
void SetAccountId(const Aws::String &value)
Definition: JobDetails.h:103
const Aws::String & GetAccountId() const
Definition: JobDetails.h:98
void SetId(const Aws::String &value)
Definition: JobDetails.h:53
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
JobDetails & WithAccountId(Aws::String &&value)
Definition: JobDetails.h:123
const Aws::String & GetId() const
Definition: JobDetails.h:48
JobDetails & WithId(Aws::String &&value)
Definition: JobDetails.h:73
void SetData(const JobData &value)
Definition: JobDetails.h:84
JSON (JavaScript Object Notation).