AWS SDK for C++

AWS SDK for C++ Version 1.11.787

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/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 CodeDeploy {
25namespace Model {
33 public:
34 AWS_CODEDEPLOY_API BatchGetApplicationRevisionsResult() = default;
37
39
42 inline const Aws::String& GetApplicationName() const { return m_applicationName; }
43 template <typename ApplicationNameT = Aws::String>
44 void SetApplicationName(ApplicationNameT&& value) {
45 m_applicationNameHasBeenSet = true;
46 m_applicationName = std::forward<ApplicationNameT>(value);
47 }
48 template <typename ApplicationNameT = Aws::String>
50 SetApplicationName(std::forward<ApplicationNameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
60 template <typename ErrorMessageT = Aws::String>
61 void SetErrorMessage(ErrorMessageT&& value) {
62 m_errorMessageHasBeenSet = true;
63 m_errorMessage = std::forward<ErrorMessageT>(value);
64 }
65 template <typename ErrorMessageT = Aws::String>
67 SetErrorMessage(std::forward<ErrorMessageT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::Vector<RevisionInfo>& GetRevisions() const { return m_revisions; }
78 template <typename RevisionsT = Aws::Vector<RevisionInfo>>
79 void SetRevisions(RevisionsT&& value) {
80 m_revisionsHasBeenSet = true;
81 m_revisions = std::forward<RevisionsT>(value);
82 }
83 template <typename RevisionsT = Aws::Vector<RevisionInfo>>
85 SetRevisions(std::forward<RevisionsT>(value));
86 return *this;
87 }
88 template <typename RevisionsT = RevisionInfo>
90 m_revisionsHasBeenSet = true;
91 m_revisions.emplace_back(std::forward<RevisionsT>(value));
92 return *this;
93 }
95
97
98 inline const Aws::String& GetRequestId() const { return m_requestId; }
99 template <typename RequestIdT = Aws::String>
100 void SetRequestId(RequestIdT&& value) {
101 m_requestIdHasBeenSet = true;
102 m_requestId = std::forward<RequestIdT>(value);
103 }
104 template <typename RequestIdT = Aws::String>
106 SetRequestId(std::forward<RequestIdT>(value));
107 return *this;
108 }
110 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
111
112 private:
113 Aws::String m_applicationName;
114
115 Aws::String m_errorMessage;
116
117 Aws::Vector<RevisionInfo> m_revisions;
118
119 Aws::String m_requestId;
120 Aws::Http::HttpResponseCode m_HttpResponseCode;
121 bool m_applicationNameHasBeenSet = false;
122 bool m_errorMessageHasBeenSet = false;
123 bool m_revisionsHasBeenSet = false;
124 bool m_requestIdHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace CodeDeploy
129} // 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