AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
BatchGetApplicationRevisionsResult.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/codedeploy/model/RevisionInfo.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 CodeDeploy {
24namespace Model {
32 public:
33 AWS_CODEDEPLOY_API BatchGetApplicationRevisionsResult() = default;
36
38
41 inline const Aws::String& GetApplicationName() const { return m_applicationName; }
42 template <typename ApplicationNameT = Aws::String>
43 void SetApplicationName(ApplicationNameT&& value) {
44 m_applicationNameHasBeenSet = true;
45 m_applicationName = std::forward<ApplicationNameT>(value);
46 }
47 template <typename ApplicationNameT = Aws::String>
49 SetApplicationName(std::forward<ApplicationNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
59 template <typename ErrorMessageT = Aws::String>
60 void SetErrorMessage(ErrorMessageT&& value) {
61 m_errorMessageHasBeenSet = true;
62 m_errorMessage = std::forward<ErrorMessageT>(value);
63 }
64 template <typename ErrorMessageT = Aws::String>
66 SetErrorMessage(std::forward<ErrorMessageT>(value));
67 return *this;
68 }
70
72
76 inline const Aws::Vector<RevisionInfo>& GetRevisions() const { return m_revisions; }
77 template <typename RevisionsT = Aws::Vector<RevisionInfo>>
78 void SetRevisions(RevisionsT&& value) {
79 m_revisionsHasBeenSet = true;
80 m_revisions = std::forward<RevisionsT>(value);
81 }
82 template <typename RevisionsT = Aws::Vector<RevisionInfo>>
84 SetRevisions(std::forward<RevisionsT>(value));
85 return *this;
86 }
87 template <typename RevisionsT = RevisionInfo>
89 m_revisionsHasBeenSet = true;
90 m_revisions.emplace_back(std::forward<RevisionsT>(value));
91 return *this;
92 }
94
96
97 inline const Aws::String& GetRequestId() const { return m_requestId; }
98 template <typename RequestIdT = Aws::String>
99 void SetRequestId(RequestIdT&& value) {
100 m_requestIdHasBeenSet = true;
101 m_requestId = std::forward<RequestIdT>(value);
102 }
103 template <typename RequestIdT = Aws::String>
105 SetRequestId(std::forward<RequestIdT>(value));
106 return *this;
107 }
109 private:
110 Aws::String m_applicationName;
111
112 Aws::String m_errorMessage;
113
114 Aws::Vector<RevisionInfo> m_revisions;
115
116 Aws::String m_requestId;
117 bool m_applicationNameHasBeenSet = false;
118 bool m_errorMessageHasBeenSet = false;
119 bool m_revisionsHasBeenSet = false;
120 bool m_requestIdHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace CodeDeploy
125} // namespace Aws
AWS_CODEDEPLOY_API BatchGetApplicationRevisionsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchGetApplicationRevisionsResult & WithRevisions(RevisionsT &&value)
BatchGetApplicationRevisionsResult & WithErrorMessage(ErrorMessageT &&value)
BatchGetApplicationRevisionsResult & WithApplicationName(ApplicationNameT &&value)
BatchGetApplicationRevisionsResult & WithRequestId(RequestIdT &&value)
BatchGetApplicationRevisionsResult & AddRevisions(RevisionsT &&value)
AWS_CODEDEPLOY_API BatchGetApplicationRevisionsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_CODEDEPLOY_API BatchGetApplicationRevisionsResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue