AWS SDK for C++  0.14.3
AWS SDK for C++
TestRepositoryTriggersResult.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 template<typename RESULT_TYPE>
24 class AmazonWebServiceResult;
25 
26 namespace Utils
27 {
28 namespace Json
29 {
30  class JsonValue;
31 } // namespace Json
32 } // namespace Utils
33 namespace CodeCommit
34 {
35 namespace Model
36 {
41  {
42  public:
46 
51  inline const Aws::Vector<Aws::String>& GetSuccessfulExecutions() const{ return m_successfulExecutions; }
52 
57  inline void SetSuccessfulExecutions(const Aws::Vector<Aws::String>& value) { m_successfulExecutions = value; }
58 
63  inline void SetSuccessfulExecutions(Aws::Vector<Aws::String>&& value) { m_successfulExecutions = value; }
64 
69  inline TestRepositoryTriggersResult& WithSuccessfulExecutions(const Aws::Vector<Aws::String>& value) { SetSuccessfulExecutions(value); return *this;}
70 
75  inline TestRepositoryTriggersResult& WithSuccessfulExecutions(Aws::Vector<Aws::String>&& value) { SetSuccessfulExecutions(value); return *this;}
76 
81  inline TestRepositoryTriggersResult& AddSuccessfulExecutions(const Aws::String& value) { m_successfulExecutions.push_back(value); return *this; }
82 
87  inline TestRepositoryTriggersResult& AddSuccessfulExecutions(Aws::String&& value) { m_successfulExecutions.push_back(value); return *this; }
88 
93  inline TestRepositoryTriggersResult& AddSuccessfulExecutions(const char* value) { m_successfulExecutions.push_back(value); return *this; }
94 
99  inline const Aws::Vector<RepositoryTriggerExecutionFailure>& GetFailedExecutions() const{ return m_failedExecutions; }
100 
105  inline void SetFailedExecutions(const Aws::Vector<RepositoryTriggerExecutionFailure>& value) { m_failedExecutions = value; }
106 
111  inline void SetFailedExecutions(Aws::Vector<RepositoryTriggerExecutionFailure>&& value) { m_failedExecutions = value; }
112 
117  inline TestRepositoryTriggersResult& WithFailedExecutions(const Aws::Vector<RepositoryTriggerExecutionFailure>& value) { SetFailedExecutions(value); return *this;}
118 
123  inline TestRepositoryTriggersResult& WithFailedExecutions(Aws::Vector<RepositoryTriggerExecutionFailure>&& value) { SetFailedExecutions(value); return *this;}
124 
129  inline TestRepositoryTriggersResult& AddFailedExecutions(const RepositoryTriggerExecutionFailure& value) { m_failedExecutions.push_back(value); return *this; }
130 
135  inline TestRepositoryTriggersResult& AddFailedExecutions(RepositoryTriggerExecutionFailure&& value) { m_failedExecutions.push_back(value); return *this; }
136 
137  private:
138  Aws::Vector<Aws::String> m_successfulExecutions;
140  };
141 
142 } // namespace Model
143 } // namespace CodeCommit
144 } // namespace Aws
void SetFailedExecutions(const Aws::Vector< RepositoryTriggerExecutionFailure > &value)
TestRepositoryTriggersResult & AddSuccessfulExecutions(Aws::String &&value)
const Aws::Vector< Aws::String > & GetSuccessfulExecutions() const
TestRepositoryTriggersResult & AddFailedExecutions(const RepositoryTriggerExecutionFailure &value)
TestRepositoryTriggersResult & WithFailedExecutions(Aws::Vector< RepositoryTriggerExecutionFailure > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
const Aws::Vector< RepositoryTriggerExecutionFailure > & GetFailedExecutions() const
TestRepositoryTriggersResult & AddFailedExecutions(RepositoryTriggerExecutionFailure &&value)
void SetSuccessfulExecutions(const Aws::Vector< Aws::String > &value)
TestRepositoryTriggersResult & WithSuccessfulExecutions(const Aws::Vector< Aws::String > &value)
TestRepositoryTriggersResult & WithFailedExecutions(const Aws::Vector< RepositoryTriggerExecutionFailure > &value)
#define AWS_CODECOMMIT_API
TestRepositoryTriggersResult & AddSuccessfulExecutions(const Aws::String &value)
TestRepositoryTriggersResult & AddSuccessfulExecutions(const char *value)
void SetSuccessfulExecutions(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
TestRepositoryTriggersResult & WithSuccessfulExecutions(Aws::Vector< Aws::String > &&value)
void SetFailedExecutions(Aws::Vector< RepositoryTriggerExecutionFailure > &&value)
JSON (JavaScript Object Notation).