AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ValidatePipelineResult.h
1
6#pragma once
7#include <aws/osis/OSIS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/osis/model/ValidationMessage.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 OSIS
26{
27namespace Model
28{
30 {
31 public:
32 AWS_OSIS_API ValidatePipelineResult();
35
36
38
41 inline bool GetIsValid() const{ return m_isValid; }
42 inline void SetIsValid(bool value) { m_isValid = value; }
43 inline ValidatePipelineResult& WithIsValid(bool value) { SetIsValid(value); return *this;}
45
47
50 inline const Aws::Vector<ValidationMessage>& GetErrors() const{ return m_errors; }
51 inline void SetErrors(const Aws::Vector<ValidationMessage>& value) { m_errors = value; }
52 inline void SetErrors(Aws::Vector<ValidationMessage>&& value) { m_errors = std::move(value); }
53 inline ValidatePipelineResult& WithErrors(const Aws::Vector<ValidationMessage>& value) { SetErrors(value); return *this;}
54 inline ValidatePipelineResult& WithErrors(Aws::Vector<ValidationMessage>&& value) { SetErrors(std::move(value)); return *this;}
55 inline ValidatePipelineResult& AddErrors(const ValidationMessage& value) { m_errors.push_back(value); return *this; }
56 inline ValidatePipelineResult& AddErrors(ValidationMessage&& value) { m_errors.push_back(std::move(value)); return *this; }
58
60
61 inline const Aws::String& GetRequestId() const{ return m_requestId; }
62 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
63 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
64 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
65 inline ValidatePipelineResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
66 inline ValidatePipelineResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
67 inline ValidatePipelineResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
69 private:
70
71 bool m_isValid;
72
74
75 Aws::String m_requestId;
76 };
77
78} // namespace Model
79} // namespace OSIS
80} // namespace Aws
AWS_OSIS_API ValidatePipelineResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetErrors(const Aws::Vector< ValidationMessage > &value)
const Aws::Vector< ValidationMessage > & GetErrors() const
ValidatePipelineResult & AddErrors(ValidationMessage &&value)
void SetErrors(Aws::Vector< ValidationMessage > &&value)
ValidatePipelineResult & AddErrors(const ValidationMessage &value)
void SetRequestId(const Aws::String &value)
ValidatePipelineResult & WithRequestId(Aws::String &&value)
ValidatePipelineResult & WithErrors(const Aws::Vector< ValidationMessage > &value)
ValidatePipelineResult & WithIsValid(bool value)
ValidatePipelineResult & WithRequestId(const Aws::String &value)
AWS_OSIS_API ValidatePipelineResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ValidatePipelineResult & WithRequestId(const char *value)
ValidatePipelineResult & WithErrors(Aws::Vector< ValidationMessage > &&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