AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
CreateBuildResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/gamelift/GameLift_EXPORTS.h>
10#include <aws/gamelift/model/AwsCredentials.h>
11#include <aws/gamelift/model/Build.h>
12#include <aws/gamelift/model/S3Location.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace GameLift {
26namespace Model {
28 public:
29 AWS_GAMELIFT_API CreateBuildResult() = default;
32
34
38 inline const Build& GetBuild() const { return m_build; }
39 template <typename BuildT = Build>
40 void SetBuild(BuildT&& value) {
41 m_buildHasBeenSet = true;
42 m_build = std::forward<BuildT>(value);
43 }
44 template <typename BuildT = Build>
45 CreateBuildResult& WithBuild(BuildT&& value) {
46 SetBuild(std::forward<BuildT>(value));
47 return *this;
48 }
50
52
60 inline const AwsCredentials& GetUploadCredentials() const { return m_uploadCredentials; }
61 template <typename UploadCredentialsT = AwsCredentials>
62 void SetUploadCredentials(UploadCredentialsT&& value) {
63 m_uploadCredentialsHasBeenSet = true;
64 m_uploadCredentials = std::forward<UploadCredentialsT>(value);
65 }
66 template <typename UploadCredentialsT = AwsCredentials>
67 CreateBuildResult& WithUploadCredentials(UploadCredentialsT&& value) {
68 SetUploadCredentials(std::forward<UploadCredentialsT>(value));
69 return *this;
70 }
72
74
78 inline const S3Location& GetStorageLocation() const { return m_storageLocation; }
79 template <typename StorageLocationT = S3Location>
80 void SetStorageLocation(StorageLocationT&& value) {
81 m_storageLocationHasBeenSet = true;
82 m_storageLocation = std::forward<StorageLocationT>(value);
83 }
84 template <typename StorageLocationT = S3Location>
85 CreateBuildResult& WithStorageLocation(StorageLocationT&& value) {
86 SetStorageLocation(std::forward<StorageLocationT>(value));
87 return *this;
88 }
90
92
93 inline const Aws::String& GetRequestId() const { return m_requestId; }
94 template <typename RequestIdT = Aws::String>
95 void SetRequestId(RequestIdT&& value) {
96 m_requestIdHasBeenSet = true;
97 m_requestId = std::forward<RequestIdT>(value);
98 }
99 template <typename RequestIdT = Aws::String>
100 CreateBuildResult& WithRequestId(RequestIdT&& value) {
101 SetRequestId(std::forward<RequestIdT>(value));
102 return *this;
103 }
105 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
106
107 private:
108 Build m_build;
109
110 AwsCredentials m_uploadCredentials;
111
112 S3Location m_storageLocation;
113
114 Aws::String m_requestId;
115 Aws::Http::HttpResponseCode m_HttpResponseCode;
116 bool m_buildHasBeenSet = false;
117 bool m_uploadCredentialsHasBeenSet = false;
118 bool m_storageLocationHasBeenSet = false;
119 bool m_requestIdHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace GameLift
124} // namespace Aws
CreateBuildResult & WithBuild(BuildT &&value)
const Aws::String & GetRequestId() const
CreateBuildResult & WithStorageLocation(StorageLocationT &&value)
const AwsCredentials & GetUploadCredentials() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
void SetStorageLocation(StorageLocationT &&value)
AWS_GAMELIFT_API CreateBuildResult()=default
AWS_GAMELIFT_API CreateBuildResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_GAMELIFT_API CreateBuildResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const S3Location & GetStorageLocation() const
void SetUploadCredentials(UploadCredentialsT &&value)
CreateBuildResult & WithRequestId(RequestIdT &&value)
CreateBuildResult & WithUploadCredentials(UploadCredentialsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue