AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename NameT = Aws::String>
52 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
53 template<typename NameT = Aws::String>
54 Artifact& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
56
58
62 inline const Aws::String& GetRevision() const { return m_revision; }
63 inline bool RevisionHasBeenSet() const { return m_revisionHasBeenSet; }
64 template<typename RevisionT = Aws::String>
65 void SetRevision(RevisionT&& value) { m_revisionHasBeenSet = true; m_revision = std::forward<RevisionT>(value); }
66 template<typename RevisionT = Aws::String>
67 Artifact& WithRevision(RevisionT&& value) { SetRevision(std::forward<RevisionT>(value)); return *this;}
69
71
74 inline const ArtifactLocation& GetLocation() const { return m_location; }
75 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
76 template<typename LocationT = ArtifactLocation>
77 void SetLocation(LocationT&& value) { m_locationHasBeenSet = true; m_location = std::forward<LocationT>(value); }
78 template<typename LocationT = ArtifactLocation>
79 Artifact& WithLocation(LocationT&& value) { SetLocation(std::forward<LocationT>(value)); return *this;}
81 private:
82
83 Aws::String m_name;
84 bool m_nameHasBeenSet = false;
85
86 Aws::String m_revision;
87 bool m_revisionHasBeenSet = false;
88
89 ArtifactLocation m_location;
90 bool m_locationHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace CodePipeline
95} // namespace Aws
void SetName(NameT &&value)
Definition Artifact.h:52
AWS_CODEPIPELINE_API Artifact()=default
const ArtifactLocation & GetLocation() const
Definition Artifact.h:74
void SetRevision(RevisionT &&value)
Definition Artifact.h:65
AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODEPIPELINE_API Artifact & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLocation(LocationT &&value)
Definition Artifact.h:77
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:62
Artifact & WithRevision(RevisionT &&value)
Definition Artifact.h:67
Artifact & WithName(NameT &&value)
Definition Artifact.h:54
Artifact & WithLocation(LocationT &&value)
Definition Artifact.h:79
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue