AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
BatchGetApplicationRevisionsResult.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/codedeploy/model/RevisionInfo.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 CodeDeploy
26{
27namespace Model
28{
36 {
37 public:
38 AWS_CODEDEPLOY_API BatchGetApplicationRevisionsResult() = default;
41
42
44
47 inline const Aws::String& GetApplicationName() const { return m_applicationName; }
48 template<typename ApplicationNameT = Aws::String>
49 void SetApplicationName(ApplicationNameT&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::forward<ApplicationNameT>(value); }
50 template<typename ApplicationNameT = Aws::String>
51 BatchGetApplicationRevisionsResult& WithApplicationName(ApplicationNameT&& value) { SetApplicationName(std::forward<ApplicationNameT>(value)); return *this;}
53
55
58 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
59 template<typename ErrorMessageT = Aws::String>
60 void SetErrorMessage(ErrorMessageT&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::forward<ErrorMessageT>(value); }
61 template<typename ErrorMessageT = Aws::String>
62 BatchGetApplicationRevisionsResult& WithErrorMessage(ErrorMessageT&& value) { SetErrorMessage(std::forward<ErrorMessageT>(value)); return *this;}
64
66
70 inline const Aws::Vector<RevisionInfo>& GetRevisions() const { return m_revisions; }
71 template<typename RevisionsT = Aws::Vector<RevisionInfo>>
72 void SetRevisions(RevisionsT&& value) { m_revisionsHasBeenSet = true; m_revisions = std::forward<RevisionsT>(value); }
73 template<typename RevisionsT = Aws::Vector<RevisionInfo>>
74 BatchGetApplicationRevisionsResult& WithRevisions(RevisionsT&& value) { SetRevisions(std::forward<RevisionsT>(value)); return *this;}
75 template<typename RevisionsT = RevisionInfo>
76 BatchGetApplicationRevisionsResult& AddRevisions(RevisionsT&& value) { m_revisionsHasBeenSet = true; m_revisions.emplace_back(std::forward<RevisionsT>(value)); return *this; }
78
80
81 inline const Aws::String& GetRequestId() const { return m_requestId; }
82 template<typename RequestIdT = Aws::String>
83 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
84 template<typename RequestIdT = Aws::String>
85 BatchGetApplicationRevisionsResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
87 private:
88
89 Aws::String m_applicationName;
90 bool m_applicationNameHasBeenSet = false;
91
92 Aws::String m_errorMessage;
93 bool m_errorMessageHasBeenSet = false;
94
95 Aws::Vector<RevisionInfo> m_revisions;
96 bool m_revisionsHasBeenSet = false;
97
98 Aws::String m_requestId;
99 bool m_requestIdHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace CodeDeploy
104} // 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