AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
TestRepositoryTriggersResult.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/codecommit/model/RepositoryTriggerExecutionFailure.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace CodeCommit {
24namespace Model {
32 public:
33 AWS_CODECOMMIT_API TestRepositoryTriggersResult() = default;
36
38
42 inline const Aws::Vector<Aws::String>& GetSuccessfulExecutions() const { return m_successfulExecutions; }
43 template <typename SuccessfulExecutionsT = Aws::Vector<Aws::String>>
44 void SetSuccessfulExecutions(SuccessfulExecutionsT&& value) {
45 m_successfulExecutionsHasBeenSet = true;
46 m_successfulExecutions = std::forward<SuccessfulExecutionsT>(value);
47 }
48 template <typename SuccessfulExecutionsT = Aws::Vector<Aws::String>>
50 SetSuccessfulExecutions(std::forward<SuccessfulExecutionsT>(value));
51 return *this;
52 }
53 template <typename SuccessfulExecutionsT = Aws::String>
54 TestRepositoryTriggersResult& AddSuccessfulExecutions(SuccessfulExecutionsT&& value) {
55 m_successfulExecutionsHasBeenSet = true;
56 m_successfulExecutions.emplace_back(std::forward<SuccessfulExecutionsT>(value));
57 return *this;
58 }
60
62
66 inline const Aws::Vector<RepositoryTriggerExecutionFailure>& GetFailedExecutions() const { return m_failedExecutions; }
67 template <typename FailedExecutionsT = Aws::Vector<RepositoryTriggerExecutionFailure>>
68 void SetFailedExecutions(FailedExecutionsT&& value) {
69 m_failedExecutionsHasBeenSet = true;
70 m_failedExecutions = std::forward<FailedExecutionsT>(value);
71 }
72 template <typename FailedExecutionsT = Aws::Vector<RepositoryTriggerExecutionFailure>>
74 SetFailedExecutions(std::forward<FailedExecutionsT>(value));
75 return *this;
76 }
77 template <typename FailedExecutionsT = RepositoryTriggerExecutionFailure>
79 m_failedExecutionsHasBeenSet = true;
80 m_failedExecutions.emplace_back(std::forward<FailedExecutionsT>(value));
81 return *this;
82 }
84
86
87 inline const Aws::String& GetRequestId() const { return m_requestId; }
88 template <typename RequestIdT = Aws::String>
89 void SetRequestId(RequestIdT&& value) {
90 m_requestIdHasBeenSet = true;
91 m_requestId = std::forward<RequestIdT>(value);
92 }
93 template <typename RequestIdT = Aws::String>
95 SetRequestId(std::forward<RequestIdT>(value));
96 return *this;
97 }
99 private:
100 Aws::Vector<Aws::String> m_successfulExecutions;
101
103
104 Aws::String m_requestId;
105 bool m_successfulExecutionsHasBeenSet = false;
106 bool m_failedExecutionsHasBeenSet = false;
107 bool m_requestIdHasBeenSet = false;
108};
109
110} // namespace Model
111} // namespace CodeCommit
112} // namespace Aws
AWS_CODECOMMIT_API TestRepositoryTriggersResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_CODECOMMIT_API TestRepositoryTriggersResult()=default
TestRepositoryTriggersResult & WithFailedExecutions(FailedExecutionsT &&value)
TestRepositoryTriggersResult & AddFailedExecutions(FailedExecutionsT &&value)
const Aws::Vector< RepositoryTriggerExecutionFailure > & GetFailedExecutions() const
TestRepositoryTriggersResult & WithRequestId(RequestIdT &&value)
const Aws::Vector< Aws::String > & GetSuccessfulExecutions() const
TestRepositoryTriggersResult & WithSuccessfulExecutions(SuccessfulExecutionsT &&value)
AWS_CODECOMMIT_API TestRepositoryTriggersResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
TestRepositoryTriggersResult & AddSuccessfulExecutions(SuccessfulExecutionsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue