AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
TestRepositoryTriggersResult.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/codecommit/model/RepositoryTriggerExecutionFailure.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace CodeCommit
26{
27namespace Model
28{
36 {
37 public:
38 AWS_CODECOMMIT_API TestRepositoryTriggersResult() = default;
41
42
44
48 inline const Aws::Vector<Aws::String>& GetSuccessfulExecutions() const { return m_successfulExecutions; }
49 template<typename SuccessfulExecutionsT = Aws::Vector<Aws::String>>
50 void SetSuccessfulExecutions(SuccessfulExecutionsT&& value) { m_successfulExecutionsHasBeenSet = true; m_successfulExecutions = std::forward<SuccessfulExecutionsT>(value); }
51 template<typename SuccessfulExecutionsT = Aws::Vector<Aws::String>>
52 TestRepositoryTriggersResult& WithSuccessfulExecutions(SuccessfulExecutionsT&& value) { SetSuccessfulExecutions(std::forward<SuccessfulExecutionsT>(value)); return *this;}
53 template<typename SuccessfulExecutionsT = Aws::String>
54 TestRepositoryTriggersResult& AddSuccessfulExecutions(SuccessfulExecutionsT&& value) { m_successfulExecutionsHasBeenSet = true; m_successfulExecutions.emplace_back(std::forward<SuccessfulExecutionsT>(value)); return *this; }
56
58
62 inline const Aws::Vector<RepositoryTriggerExecutionFailure>& GetFailedExecutions() const { return m_failedExecutions; }
63 template<typename FailedExecutionsT = Aws::Vector<RepositoryTriggerExecutionFailure>>
64 void SetFailedExecutions(FailedExecutionsT&& value) { m_failedExecutionsHasBeenSet = true; m_failedExecutions = std::forward<FailedExecutionsT>(value); }
65 template<typename FailedExecutionsT = Aws::Vector<RepositoryTriggerExecutionFailure>>
66 TestRepositoryTriggersResult& WithFailedExecutions(FailedExecutionsT&& value) { SetFailedExecutions(std::forward<FailedExecutionsT>(value)); return *this;}
67 template<typename FailedExecutionsT = RepositoryTriggerExecutionFailure>
68 TestRepositoryTriggersResult& AddFailedExecutions(FailedExecutionsT&& value) { m_failedExecutionsHasBeenSet = true; m_failedExecutions.emplace_back(std::forward<FailedExecutionsT>(value)); return *this; }
70
72
73 inline const Aws::String& GetRequestId() const { return m_requestId; }
74 template<typename RequestIdT = Aws::String>
75 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
76 template<typename RequestIdT = Aws::String>
77 TestRepositoryTriggersResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
79 private:
80
81 Aws::Vector<Aws::String> m_successfulExecutions;
82 bool m_successfulExecutionsHasBeenSet = false;
83
85 bool m_failedExecutionsHasBeenSet = false;
86
87 Aws::String m_requestId;
88 bool m_requestIdHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace CodeCommit
93} // 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