AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
CreateBuildResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/gamelift/GameLift_EXPORTS.h>
9#include <aws/gamelift/model/AwsCredentials.h>
10#include <aws/gamelift/model/Build.h>
11#include <aws/gamelift/model/S3Location.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 GameLift {
25namespace Model {
27 public:
28 AWS_GAMELIFT_API CreateBuildResult() = default;
31
33
37 inline const Build& GetBuild() const { return m_build; }
38 template <typename BuildT = Build>
39 void SetBuild(BuildT&& value) {
40 m_buildHasBeenSet = true;
41 m_build = std::forward<BuildT>(value);
42 }
43 template <typename BuildT = Build>
44 CreateBuildResult& WithBuild(BuildT&& value) {
45 SetBuild(std::forward<BuildT>(value));
46 return *this;
47 }
49
51
59 inline const AwsCredentials& GetUploadCredentials() const { return m_uploadCredentials; }
60 template <typename UploadCredentialsT = AwsCredentials>
61 void SetUploadCredentials(UploadCredentialsT&& value) {
62 m_uploadCredentialsHasBeenSet = true;
63 m_uploadCredentials = std::forward<UploadCredentialsT>(value);
64 }
65 template <typename UploadCredentialsT = AwsCredentials>
66 CreateBuildResult& WithUploadCredentials(UploadCredentialsT&& value) {
67 SetUploadCredentials(std::forward<UploadCredentialsT>(value));
68 return *this;
69 }
71
73
77 inline const S3Location& GetStorageLocation() const { return m_storageLocation; }
78 template <typename StorageLocationT = S3Location>
79 void SetStorageLocation(StorageLocationT&& value) {
80 m_storageLocationHasBeenSet = true;
81 m_storageLocation = std::forward<StorageLocationT>(value);
82 }
83 template <typename StorageLocationT = S3Location>
84 CreateBuildResult& WithStorageLocation(StorageLocationT&& value) {
85 SetStorageLocation(std::forward<StorageLocationT>(value));
86 return *this;
87 }
89
91
92 inline const Aws::String& GetRequestId() const { return m_requestId; }
93 template <typename RequestIdT = Aws::String>
94 void SetRequestId(RequestIdT&& value) {
95 m_requestIdHasBeenSet = true;
96 m_requestId = std::forward<RequestIdT>(value);
97 }
98 template <typename RequestIdT = Aws::String>
99 CreateBuildResult& WithRequestId(RequestIdT&& value) {
100 SetRequestId(std::forward<RequestIdT>(value));
101 return *this;
102 }
104 private:
105 Build m_build;
106
107 AwsCredentials m_uploadCredentials;
108
109 S3Location m_storageLocation;
110
111 Aws::String m_requestId;
112 bool m_buildHasBeenSet = false;
113 bool m_uploadCredentialsHasBeenSet = false;
114 bool m_storageLocationHasBeenSet = false;
115 bool m_requestIdHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace GameLift
120} // namespace Aws
CreateBuildResult & WithBuild(BuildT &&value)
const Aws::String & GetRequestId() const
CreateBuildResult & WithStorageLocation(StorageLocationT &&value)
const AwsCredentials & GetUploadCredentials() 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