AWS SDK for C++

AWS SDK for C++ Version 1.11.788

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/http/HttpResponse.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace CodeCommit {
25namespace Model {
33 public:
34 AWS_CODECOMMIT_API TestRepositoryTriggersResult() = default;
37
39
43 inline const Aws::Vector<Aws::String>& GetSuccessfulExecutions() const { return m_successfulExecutions; }
44 template <typename SuccessfulExecutionsT = Aws::Vector<Aws::String>>
45 void SetSuccessfulExecutions(SuccessfulExecutionsT&& value) {
46 m_successfulExecutionsHasBeenSet = true;
47 m_successfulExecutions = std::forward<SuccessfulExecutionsT>(value);
48 }
49 template <typename SuccessfulExecutionsT = Aws::Vector<Aws::String>>
51 SetSuccessfulExecutions(std::forward<SuccessfulExecutionsT>(value));
52 return *this;
53 }
54 template <typename SuccessfulExecutionsT = Aws::String>
55 TestRepositoryTriggersResult& AddSuccessfulExecutions(SuccessfulExecutionsT&& value) {
56 m_successfulExecutionsHasBeenSet = true;
57 m_successfulExecutions.emplace_back(std::forward<SuccessfulExecutionsT>(value));
58 return *this;
59 }
61
63
67 inline const Aws::Vector<RepositoryTriggerExecutionFailure>& GetFailedExecutions() const { return m_failedExecutions; }
68 template <typename FailedExecutionsT = Aws::Vector<RepositoryTriggerExecutionFailure>>
69 void SetFailedExecutions(FailedExecutionsT&& value) {
70 m_failedExecutionsHasBeenSet = true;
71 m_failedExecutions = std::forward<FailedExecutionsT>(value);
72 }
73 template <typename FailedExecutionsT = Aws::Vector<RepositoryTriggerExecutionFailure>>
75 SetFailedExecutions(std::forward<FailedExecutionsT>(value));
76 return *this;
77 }
78 template <typename FailedExecutionsT = RepositoryTriggerExecutionFailure>
80 m_failedExecutionsHasBeenSet = true;
81 m_failedExecutions.emplace_back(std::forward<FailedExecutionsT>(value));
82 return *this;
83 }
85
87
88 inline const Aws::String& GetRequestId() const { return m_requestId; }
89 template <typename RequestIdT = Aws::String>
90 void SetRequestId(RequestIdT&& value) {
91 m_requestIdHasBeenSet = true;
92 m_requestId = std::forward<RequestIdT>(value);
93 }
94 template <typename RequestIdT = Aws::String>
96 SetRequestId(std::forward<RequestIdT>(value));
97 return *this;
98 }
100 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
101
102 private:
103 Aws::Vector<Aws::String> m_successfulExecutions;
104
106
107 Aws::String m_requestId;
108 Aws::Http::HttpResponseCode m_HttpResponseCode;
109 bool m_successfulExecutionsHasBeenSet = false;
110 bool m_failedExecutionsHasBeenSet = false;
111 bool m_requestIdHasBeenSet = false;
112};
113
114} // namespace Model
115} // namespace CodeCommit
116} // 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