AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
Artifact.h
1
6#pragma once
7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/codepipeline/model/ArtifactLocation.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CodePipeline {
21namespace Model {
22
32class Artifact {
33 public:
34 AWS_CODEPIPELINE_API Artifact() = default;
35 AWS_CODEPIPELINE_API Artifact(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CODEPIPELINE_API Artifact& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template <typename NameT = Aws::String>
46 void SetName(NameT&& value) {
47 m_nameHasBeenSet = true;
48 m_name = std::forward<NameT>(value);
49 }
50 template <typename NameT = Aws::String>
51 Artifact& WithName(NameT&& value) {
52 SetName(std::forward<NameT>(value));
53 return *this;
54 }
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) {
66 m_revisionHasBeenSet = true;
67 m_revision = std::forward<RevisionT>(value);
68 }
69 template <typename RevisionT = Aws::String>
70 Artifact& WithRevision(RevisionT&& value) {
71 SetRevision(std::forward<RevisionT>(value));
72 return *this;
73 }
75
77
80 inline const ArtifactLocation& GetLocation() const { return m_location; }
81 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
82 template <typename LocationT = ArtifactLocation>
83 void SetLocation(LocationT&& value) {
84 m_locationHasBeenSet = true;
85 m_location = std::forward<LocationT>(value);
86 }
87 template <typename LocationT = ArtifactLocation>
88 Artifact& WithLocation(LocationT&& value) {
89 SetLocation(std::forward<LocationT>(value));
90 return *this;
91 }
93 private:
94 Aws::String m_name;
95
96 Aws::String m_revision;
97
98 ArtifactLocation m_location;
99 bool m_nameHasBeenSet = false;
100 bool m_revisionHasBeenSet = false;
101 bool m_locationHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace CodePipeline
106} // namespace Aws
void SetName(NameT &&value)
Definition Artifact.h:46
AWS_CODEPIPELINE_API Artifact()=default
const ArtifactLocation & GetLocation() const
Definition Artifact.h:80
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:83
AWS_CODEPIPELINE_API Artifact(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
Definition Artifact.h:43
const Aws::String & GetRevision() const
Definition Artifact.h:62
Artifact & WithRevision(RevisionT &&value)
Definition Artifact.h:70
Artifact & WithName(NameT &&value)
Definition Artifact.h:51
Artifact & WithLocation(LocationT &&value)
Definition Artifact.h:88
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue