AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
OutputArtifact.h
1
6#pragma once
7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.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
30 public:
31 AWS_CODEPIPELINE_API OutputArtifact() = default;
32 AWS_CODEPIPELINE_API OutputArtifact(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CODEPIPELINE_API OutputArtifact& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
46 inline const Aws::String& GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 template <typename NameT = Aws::String>
49 void SetName(NameT&& value) {
50 m_nameHasBeenSet = true;
51 m_name = std::forward<NameT>(value);
52 }
53 template <typename NameT = Aws::String>
54 OutputArtifact& WithName(NameT&& value) {
55 SetName(std::forward<NameT>(value));
56 return *this;
57 }
59
61
65 inline const Aws::Vector<Aws::String>& GetFiles() const { return m_files; }
66 inline bool FilesHasBeenSet() const { return m_filesHasBeenSet; }
67 template <typename FilesT = Aws::Vector<Aws::String>>
68 void SetFiles(FilesT&& value) {
69 m_filesHasBeenSet = true;
70 m_files = std::forward<FilesT>(value);
71 }
72 template <typename FilesT = Aws::Vector<Aws::String>>
73 OutputArtifact& WithFiles(FilesT&& value) {
74 SetFiles(std::forward<FilesT>(value));
75 return *this;
76 }
77 template <typename FilesT = Aws::String>
78 OutputArtifact& AddFiles(FilesT&& value) {
79 m_filesHasBeenSet = true;
80 m_files.emplace_back(std::forward<FilesT>(value));
81 return *this;
82 }
84 private:
85 Aws::String m_name;
86
88 bool m_nameHasBeenSet = false;
89 bool m_filesHasBeenSet = false;
90};
91
92} // namespace Model
93} // namespace CodePipeline
94} // namespace Aws
OutputArtifact & AddFiles(FilesT &&value)
OutputArtifact & WithFiles(FilesT &&value)
AWS_CODEPIPELINE_API OutputArtifact()=default
const Aws::Vector< Aws::String > & GetFiles() const
const Aws::String & GetName() const
AWS_CODEPIPELINE_API OutputArtifact & operator=(Aws::Utils::Json::JsonView jsonValue)
OutputArtifact & WithName(NameT &&value)
AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODEPIPELINE_API OutputArtifact(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue