AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ActionExecutionOutput.h
1
6#pragma once
7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/codepipeline/model/ActionExecutionResult.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/codepipeline/model/ArtifactDetail.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace CodePipeline
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_CODEPIPELINE_API ActionExecutionOutput() = default;
40 AWS_CODEPIPELINE_API ActionExecutionOutput(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const Aws::Vector<ArtifactDetail>& GetOutputArtifacts() const { return m_outputArtifacts; }
51 inline bool OutputArtifactsHasBeenSet() const { return m_outputArtifactsHasBeenSet; }
52 template<typename OutputArtifactsT = Aws::Vector<ArtifactDetail>>
53 void SetOutputArtifacts(OutputArtifactsT&& value) { m_outputArtifactsHasBeenSet = true; m_outputArtifacts = std::forward<OutputArtifactsT>(value); }
54 template<typename OutputArtifactsT = Aws::Vector<ArtifactDetail>>
55 ActionExecutionOutput& WithOutputArtifacts(OutputArtifactsT&& value) { SetOutputArtifacts(std::forward<OutputArtifactsT>(value)); return *this;}
56 template<typename OutputArtifactsT = ArtifactDetail>
57 ActionExecutionOutput& AddOutputArtifacts(OutputArtifactsT&& value) { m_outputArtifactsHasBeenSet = true; m_outputArtifacts.emplace_back(std::forward<OutputArtifactsT>(value)); return *this; }
59
61
65 inline const ActionExecutionResult& GetExecutionResult() const { return m_executionResult; }
66 inline bool ExecutionResultHasBeenSet() const { return m_executionResultHasBeenSet; }
67 template<typename ExecutionResultT = ActionExecutionResult>
68 void SetExecutionResult(ExecutionResultT&& value) { m_executionResultHasBeenSet = true; m_executionResult = std::forward<ExecutionResultT>(value); }
69 template<typename ExecutionResultT = ActionExecutionResult>
70 ActionExecutionOutput& WithExecutionResult(ExecutionResultT&& value) { SetExecutionResult(std::forward<ExecutionResultT>(value)); return *this;}
72
74
78 inline const Aws::Map<Aws::String, Aws::String>& GetOutputVariables() const { return m_outputVariables; }
79 inline bool OutputVariablesHasBeenSet() const { return m_outputVariablesHasBeenSet; }
80 template<typename OutputVariablesT = Aws::Map<Aws::String, Aws::String>>
81 void SetOutputVariables(OutputVariablesT&& value) { m_outputVariablesHasBeenSet = true; m_outputVariables = std::forward<OutputVariablesT>(value); }
82 template<typename OutputVariablesT = Aws::Map<Aws::String, Aws::String>>
83 ActionExecutionOutput& WithOutputVariables(OutputVariablesT&& value) { SetOutputVariables(std::forward<OutputVariablesT>(value)); return *this;}
84 template<typename OutputVariablesKeyT = Aws::String, typename OutputVariablesValueT = Aws::String>
85 ActionExecutionOutput& AddOutputVariables(OutputVariablesKeyT&& key, OutputVariablesValueT&& value) {
86 m_outputVariablesHasBeenSet = true; m_outputVariables.emplace(std::forward<OutputVariablesKeyT>(key), std::forward<OutputVariablesValueT>(value)); return *this;
87 }
89 private:
90
91 Aws::Vector<ArtifactDetail> m_outputArtifacts;
92 bool m_outputArtifactsHasBeenSet = false;
93
94 ActionExecutionResult m_executionResult;
95 bool m_executionResultHasBeenSet = false;
96
97 Aws::Map<Aws::String, Aws::String> m_outputVariables;
98 bool m_outputVariablesHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace CodePipeline
103} // namespace Aws
const ActionExecutionResult & GetExecutionResult() const
const Aws::Vector< ArtifactDetail > & GetOutputArtifacts() const
ActionExecutionOutput & WithExecutionResult(ExecutionResultT &&value)
ActionExecutionOutput & AddOutputVariables(OutputVariablesKeyT &&key, OutputVariablesValueT &&value)
ActionExecutionOutput & WithOutputArtifacts(OutputArtifactsT &&value)
AWS_CODEPIPELINE_API ActionExecutionOutput()=default
const Aws::Map< Aws::String, Aws::String > & GetOutputVariables() const
ActionExecutionOutput & AddOutputArtifacts(OutputArtifactsT &&value)
AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
ActionExecutionOutput & WithOutputVariables(OutputVariablesT &&value)
AWS_CODEPIPELINE_API ActionExecutionOutput(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEPIPELINE_API ActionExecutionOutput & operator=(Aws::Utils::Json::JsonView jsonValue)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue