AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
SuccessConditions.h
1
6#pragma once
7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/codepipeline/model/Condition.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
34 public:
35 AWS_CODEPIPELINE_API SuccessConditions() = default;
36 AWS_CODEPIPELINE_API SuccessConditions(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CODEPIPELINE_API SuccessConditions& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::Vector<Condition>& GetConditions() const { return m_conditions; }
45 inline bool ConditionsHasBeenSet() const { return m_conditionsHasBeenSet; }
46 template <typename ConditionsT = Aws::Vector<Condition>>
47 void SetConditions(ConditionsT&& value) {
48 m_conditionsHasBeenSet = true;
49 m_conditions = std::forward<ConditionsT>(value);
50 }
51 template <typename ConditionsT = Aws::Vector<Condition>>
52 SuccessConditions& WithConditions(ConditionsT&& value) {
53 SetConditions(std::forward<ConditionsT>(value));
54 return *this;
55 }
56 template <typename ConditionsT = Condition>
57 SuccessConditions& AddConditions(ConditionsT&& value) {
58 m_conditionsHasBeenSet = true;
59 m_conditions.emplace_back(std::forward<ConditionsT>(value));
60 return *this;
61 }
63 private:
64 Aws::Vector<Condition> m_conditions;
65 bool m_conditionsHasBeenSet = false;
66};
67
68} // namespace Model
69} // namespace CodePipeline
70} // namespace Aws
AWS_CODEPIPELINE_API SuccessConditions(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEPIPELINE_API SuccessConditions & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Condition > & GetConditions() const
AWS_CODEPIPELINE_API SuccessConditions()=default
SuccessConditions & WithConditions(ConditionsT &&value)
AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
SuccessConditions & AddConditions(ConditionsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue