AWS SDK for C++  0.12.9
AWS SDK for C++
ActionRevision.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:
42  ActionRevision& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
49  inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
50 
55  inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
56 
61  inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
62 
67  inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
68 
73  inline ActionRevision& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
74 
79  inline ActionRevision& WithRevisionId(Aws::String&& value) { SetRevisionId(value); return *this;}
80 
85  inline ActionRevision& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
86 
91  inline const Aws::String& GetRevisionChangeId() const{ return m_revisionChangeId; }
92 
97  inline void SetRevisionChangeId(const Aws::String& value) { m_revisionChangeIdHasBeenSet = true; m_revisionChangeId = value; }
98 
103  inline void SetRevisionChangeId(Aws::String&& value) { m_revisionChangeIdHasBeenSet = true; m_revisionChangeId = value; }
104 
109  inline void SetRevisionChangeId(const char* value) { m_revisionChangeIdHasBeenSet = true; m_revisionChangeId.assign(value); }
110 
115  inline ActionRevision& WithRevisionChangeId(const Aws::String& value) { SetRevisionChangeId(value); return *this;}
116 
121  inline ActionRevision& WithRevisionChangeId(Aws::String&& value) { SetRevisionChangeId(value); return *this;}
122 
127  inline ActionRevision& WithRevisionChangeId(const char* value) { SetRevisionChangeId(value); return *this;}
128 
133  inline const Aws::Utils::DateTime& GetCreated() const{ return m_created; }
134 
139  inline void SetCreated(const Aws::Utils::DateTime& value) { m_createdHasBeenSet = true; m_created = value; }
140 
145  inline void SetCreated(Aws::Utils::DateTime&& value) { m_createdHasBeenSet = true; m_created = value; }
146 
151  inline ActionRevision& WithCreated(const Aws::Utils::DateTime& value) { SetCreated(value); return *this;}
152 
157  inline ActionRevision& WithCreated(Aws::Utils::DateTime&& value) { SetCreated(value); return *this;}
158 
159  private:
160  Aws::String m_revisionId;
161  bool m_revisionIdHasBeenSet;
162  Aws::String m_revisionChangeId;
163  bool m_revisionChangeIdHasBeenSet;
164  Aws::Utils::DateTime m_created;
165  bool m_createdHasBeenSet;
166  };
167 
168 } // namespace Model
169 } // namespace CodePipeline
170 } // namespace Aws
ActionRevision & WithRevisionChangeId(const Aws::String &value)
ActionRevision & WithCreated(Aws::Utils::DateTime &&value)
void SetRevisionChangeId(const char *value)
ActionRevision & WithRevisionChangeId(Aws::String &&value)
const Aws::Utils::DateTime & GetCreated() const
ActionRevision & WithRevisionChangeId(const char *value)
void SetCreated(const Aws::Utils::DateTime &value)
ActionRevision & WithCreated(const Aws::Utils::DateTime &value)
ActionRevision & WithRevisionId(Aws::String &&value)
void SetRevisionId(Aws::String &&value)
void SetCreated(Aws::Utils::DateTime &&value)
ActionRevision & WithRevisionId(const Aws::String &value)
#define AWS_CODEPIPELINE_API
void SetRevisionId(const Aws::String &value)
const Aws::String & GetRevisionChangeId() const
void SetRevisionChangeId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetRevisionChangeId(Aws::String &&value)
const Aws::String & GetRevisionId() const
ActionRevision & WithRevisionId(const char *value)
JSON (JavaScript Object Notation).