AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateScriptRequest.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/gamelift/GameLiftRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/gamelift/model/S3Location.h>
11#include <aws/core/utils/Array.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/gamelift/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace GameLift
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_GAMELIFT_API CreateScriptRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateScript"; }
35
36 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
37
39
40
42
48 inline const Aws::String& GetName() const { return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 template<typename NameT = Aws::String>
51 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
52 template<typename NameT = Aws::String>
53 CreateScriptRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
55
57
63 inline const Aws::String& GetVersion() const { return m_version; }
64 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
65 template<typename VersionT = Aws::String>
66 void SetVersion(VersionT&& value) { m_versionHasBeenSet = true; m_version = std::forward<VersionT>(value); }
67 template<typename VersionT = Aws::String>
68 CreateScriptRequest& WithVersion(VersionT&& value) { SetVersion(std::forward<VersionT>(value)); return *this;}
70
72
82 inline const S3Location& GetStorageLocation() const { return m_storageLocation; }
83 inline bool StorageLocationHasBeenSet() const { return m_storageLocationHasBeenSet; }
84 template<typename StorageLocationT = S3Location>
85 void SetStorageLocation(StorageLocationT&& value) { m_storageLocationHasBeenSet = true; m_storageLocation = std::forward<StorageLocationT>(value); }
86 template<typename StorageLocationT = S3Location>
87 CreateScriptRequest& WithStorageLocation(StorageLocationT&& value) { SetStorageLocation(std::forward<StorageLocationT>(value)); return *this;}
89
91
99 inline const Aws::Utils::ByteBuffer& GetZipFile() const { return m_zipFile; }
100 inline bool ZipFileHasBeenSet() const { return m_zipFileHasBeenSet; }
101 template<typename ZipFileT = Aws::Utils::ByteBuffer>
102 void SetZipFile(ZipFileT&& value) { m_zipFileHasBeenSet = true; m_zipFile = std::forward<ZipFileT>(value); }
103 template<typename ZipFileT = Aws::Utils::ByteBuffer>
104 CreateScriptRequest& WithZipFile(ZipFileT&& value) { SetZipFile(std::forward<ZipFileT>(value)); return *this;}
106
108
124 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
125 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
126 template<typename TagsT = Aws::Vector<Tag>>
127 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
128 template<typename TagsT = Aws::Vector<Tag>>
129 CreateScriptRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
130 template<typename TagsT = Tag>
131 CreateScriptRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
133 private:
134
135 Aws::String m_name;
136 bool m_nameHasBeenSet = false;
137
138 Aws::String m_version;
139 bool m_versionHasBeenSet = false;
140
141 S3Location m_storageLocation;
142 bool m_storageLocationHasBeenSet = false;
143
144 Aws::Utils::ByteBuffer m_zipFile{};
145 bool m_zipFileHasBeenSet = false;
146
147 Aws::Vector<Tag> m_tags;
148 bool m_tagsHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace GameLift
153} // namespace Aws
const Aws::Vector< Tag > & GetTags() const
CreateScriptRequest & WithZipFile(ZipFileT &&value)
void SetStorageLocation(StorageLocationT &&value)
CreateScriptRequest & WithStorageLocation(StorageLocationT &&value)
AWS_GAMELIFT_API Aws::String SerializePayload() const override
const Aws::Utils::ByteBuffer & GetZipFile() const
CreateScriptRequest & WithName(NameT &&value)
CreateScriptRequest & WithTags(TagsT &&value)
AWS_GAMELIFT_API CreateScriptRequest()=default
CreateScriptRequest & WithVersion(VersionT &&value)
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateScriptRequest & AddTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector