AWS SDK for C++  0.12.9
AWS SDK for C++
Artifact.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 
39  {
40  public:
41  Artifact();
42  Artifact(const Aws::Utils::Json::JsonValue& jsonValue);
43  Artifact& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
49  inline const Aws::String& GetName() const{ return m_name; }
50 
54  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
55 
59  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
60 
64  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
65 
69  inline Artifact& WithName(const Aws::String& value) { SetName(value); return *this;}
70 
74  inline Artifact& WithName(Aws::String&& value) { SetName(value); return *this;}
75 
79  inline Artifact& WithName(const char* value) { SetName(value); return *this;}
80 
85  inline const Aws::String& GetRevision() const{ return m_revision; }
86 
91  inline void SetRevision(const Aws::String& value) { m_revisionHasBeenSet = true; m_revision = value; }
92 
97  inline void SetRevision(Aws::String&& value) { m_revisionHasBeenSet = true; m_revision = value; }
98 
103  inline void SetRevision(const char* value) { m_revisionHasBeenSet = true; m_revision.assign(value); }
104 
109  inline Artifact& WithRevision(const Aws::String& value) { SetRevision(value); return *this;}
110 
115  inline Artifact& WithRevision(Aws::String&& value) { SetRevision(value); return *this;}
116 
121  inline Artifact& WithRevision(const char* value) { SetRevision(value); return *this;}
122 
126  inline const ArtifactLocation& GetLocation() const{ return m_location; }
127 
131  inline void SetLocation(const ArtifactLocation& value) { m_locationHasBeenSet = true; m_location = value; }
132 
136  inline void SetLocation(ArtifactLocation&& value) { m_locationHasBeenSet = true; m_location = value; }
137 
141  inline Artifact& WithLocation(const ArtifactLocation& value) { SetLocation(value); return *this;}
142 
146  inline Artifact& WithLocation(ArtifactLocation&& value) { SetLocation(value); return *this;}
147 
148  private:
149  Aws::String m_name;
150  bool m_nameHasBeenSet;
151  Aws::String m_revision;
152  bool m_revisionHasBeenSet;
153  ArtifactLocation m_location;
154  bool m_locationHasBeenSet;
155  };
156 
157 } // namespace Model
158 } // namespace CodePipeline
159 } // namespace Aws
void SetLocation(ArtifactLocation &&value)
Definition: Artifact.h:136
Artifact & WithName(Aws::String &&value)
Definition: Artifact.h:74
void SetRevision(Aws::String &&value)
Definition: Artifact.h:97
void SetRevision(const Aws::String &value)
Definition: Artifact.h:91
Artifact & WithLocation(ArtifactLocation &&value)
Definition: Artifact.h:146
const Aws::String & GetName() const
Definition: Artifact.h:49
const Aws::String & GetRevision() const
Definition: Artifact.h:85
Artifact & WithName(const Aws::String &value)
Definition: Artifact.h:69
Artifact & WithLocation(const ArtifactLocation &value)
Definition: Artifact.h:141
void SetLocation(const ArtifactLocation &value)
Definition: Artifact.h:131
Artifact & WithRevision(const char *value)
Definition: Artifact.h:121
#define AWS_CODEPIPELINE_API
void SetName(const char *value)
Definition: Artifact.h:64
void SetName(const Aws::String &value)
Definition: Artifact.h:54
void SetName(Aws::String &&value)
Definition: Artifact.h:59
Artifact & WithName(const char *value)
Definition: Artifact.h:79
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Artifact & WithRevision(const Aws::String &value)
Definition: Artifact.h:109
Artifact & WithRevision(Aws::String &&value)
Definition: Artifact.h:115
void SetRevision(const char *value)
Definition: Artifact.h:103
JSON (JavaScript Object Notation).
const ArtifactLocation & GetLocation() const
Definition: Artifact.h:126