AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Artifact.h
1
6#pragma once
7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/codepipeline/model/ArtifactLocation.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CodePipeline
23{
24namespace Model
25{
26
37 {
38 public:
39 AWS_CODEPIPELINE_API Artifact();
40 AWS_CODEPIPELINE_API Artifact(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CODEPIPELINE_API Artifact& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetName() const{ return m_name; }
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
52 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
53 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
54 inline Artifact& WithName(const Aws::String& value) { SetName(value); return *this;}
55 inline Artifact& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
56 inline Artifact& WithName(const char* value) { SetName(value); return *this;}
58
60
64 inline const Aws::String& GetRevision() const{ return m_revision; }
65 inline bool RevisionHasBeenSet() const { return m_revisionHasBeenSet; }
66 inline void SetRevision(const Aws::String& value) { m_revisionHasBeenSet = true; m_revision = value; }
67 inline void SetRevision(Aws::String&& value) { m_revisionHasBeenSet = true; m_revision = std::move(value); }
68 inline void SetRevision(const char* value) { m_revisionHasBeenSet = true; m_revision.assign(value); }
69 inline Artifact& WithRevision(const Aws::String& value) { SetRevision(value); return *this;}
70 inline Artifact& WithRevision(Aws::String&& value) { SetRevision(std::move(value)); return *this;}
71 inline Artifact& WithRevision(const char* value) { SetRevision(value); return *this;}
73
75
78 inline const ArtifactLocation& GetLocation() const{ return m_location; }
79 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
80 inline void SetLocation(const ArtifactLocation& value) { m_locationHasBeenSet = true; m_location = value; }
81 inline void SetLocation(ArtifactLocation&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
82 inline Artifact& WithLocation(const ArtifactLocation& value) { SetLocation(value); return *this;}
83 inline Artifact& WithLocation(ArtifactLocation&& value) { SetLocation(std::move(value)); return *this;}
85 private:
86
87 Aws::String m_name;
88 bool m_nameHasBeenSet = false;
89
90 Aws::String m_revision;
91 bool m_revisionHasBeenSet = false;
92
93 ArtifactLocation m_location;
94 bool m_locationHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace CodePipeline
99} // namespace Aws
void SetRevision(Aws::String &&value)
Definition Artifact.h:67
Artifact & WithName(const char *value)
Definition Artifact.h:56
void SetRevision(const char *value)
Definition Artifact.h:68
void SetLocation(ArtifactLocation &&value)
Definition Artifact.h:81
Artifact & WithRevision(const char *value)
Definition Artifact.h:71
Artifact & WithRevision(Aws::String &&value)
Definition Artifact.h:70
const ArtifactLocation & GetLocation() const
Definition Artifact.h:78
void SetRevision(const Aws::String &value)
Definition Artifact.h:66
void SetName(const char *value)
Definition Artifact.h:53
AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODEPIPELINE_API Artifact & operator=(Aws::Utils::Json::JsonView jsonValue)
Artifact & WithName(Aws::String &&value)
Definition Artifact.h:55
void SetLocation(const ArtifactLocation &value)
Definition Artifact.h:80
AWS_CODEPIPELINE_API Artifact(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
Definition Artifact.h:49
const Aws::String & GetRevision() const
Definition Artifact.h:64
void SetName(Aws::String &&value)
Definition Artifact.h:52
Artifact & WithName(const Aws::String &value)
Definition Artifact.h:54
Artifact & WithLocation(ArtifactLocation &&value)
Definition Artifact.h:83
AWS_CODEPIPELINE_API Artifact()
Artifact & WithLocation(const ArtifactLocation &value)
Definition Artifact.h:82
Artifact & WithRevision(const Aws::String &value)
Definition Artifact.h:69
void SetName(const Aws::String &value)
Definition Artifact.h:51
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue