AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetDeploymentResult.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/codedeploy/model/DeploymentInfo.h>
9#include <aws/core/http/HttpResponse.h>
10#include <aws/core/utils/memory/stl/AWSString.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 GetDeploymentResult() = default;
36
38
41 inline const DeploymentInfo& GetDeploymentInfo() const { return m_deploymentInfo; }
42 template <typename DeploymentInfoT = DeploymentInfo>
43 void SetDeploymentInfo(DeploymentInfoT&& value) {
44 m_deploymentInfoHasBeenSet = true;
45 m_deploymentInfo = std::forward<DeploymentInfoT>(value);
46 }
47 template <typename DeploymentInfoT = DeploymentInfo>
48 GetDeploymentResult& WithDeploymentInfo(DeploymentInfoT&& value) {
49 SetDeploymentInfo(std::forward<DeploymentInfoT>(value));
50 return *this;
51 }
53
55
56 inline const Aws::String& GetRequestId() const { return m_requestId; }
57 template <typename RequestIdT = Aws::String>
58 void SetRequestId(RequestIdT&& value) {
59 m_requestIdHasBeenSet = true;
60 m_requestId = std::forward<RequestIdT>(value);
61 }
62 template <typename RequestIdT = Aws::String>
63 GetDeploymentResult& WithRequestId(RequestIdT&& value) {
64 SetRequestId(std::forward<RequestIdT>(value));
65 return *this;
66 }
68 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
69
70 private:
71 DeploymentInfo m_deploymentInfo;
72
73 Aws::String m_requestId;
74 Aws::Http::HttpResponseCode m_HttpResponseCode;
75 bool m_deploymentInfoHasBeenSet = false;
76 bool m_requestIdHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace CodeDeploy
81} // namespace Aws
Aws::Http::HttpResponseCode GetHttpResponseCode() const
void SetDeploymentInfo(DeploymentInfoT &&value)
AWS_CODEDEPLOY_API GetDeploymentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const DeploymentInfo & GetDeploymentInfo() const
AWS_CODEDEPLOY_API GetDeploymentResult()=default
GetDeploymentResult & WithRequestId(RequestIdT &&value)
AWS_CODEDEPLOY_API GetDeploymentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetDeploymentResult & WithDeploymentInfo(DeploymentInfoT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue