AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
51 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
52 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
53 inline CreateScriptRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
54 inline CreateScriptRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
55 inline CreateScriptRequest& WithName(const char* value) { SetName(value); return *this;}
57
59
65 inline const Aws::String& GetVersion() const{ return m_version; }
66 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
67 inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
68 inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
69 inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
70 inline CreateScriptRequest& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
71 inline CreateScriptRequest& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
72 inline CreateScriptRequest& WithVersion(const char* value) { SetVersion(value); return *this;}
74
76
86 inline const S3Location& GetStorageLocation() const{ return m_storageLocation; }
87 inline bool StorageLocationHasBeenSet() const { return m_storageLocationHasBeenSet; }
88 inline void SetStorageLocation(const S3Location& value) { m_storageLocationHasBeenSet = true; m_storageLocation = value; }
89 inline void SetStorageLocation(S3Location&& value) { m_storageLocationHasBeenSet = true; m_storageLocation = std::move(value); }
90 inline CreateScriptRequest& WithStorageLocation(const S3Location& value) { SetStorageLocation(value); return *this;}
91 inline CreateScriptRequest& WithStorageLocation(S3Location&& value) { SetStorageLocation(std::move(value)); return *this;}
93
95
103 inline const Aws::Utils::ByteBuffer& GetZipFile() const{ return m_zipFile; }
104 inline bool ZipFileHasBeenSet() const { return m_zipFileHasBeenSet; }
105 inline void SetZipFile(const Aws::Utils::ByteBuffer& value) { m_zipFileHasBeenSet = true; m_zipFile = value; }
106 inline void SetZipFile(Aws::Utils::ByteBuffer&& value) { m_zipFileHasBeenSet = true; m_zipFile = std::move(value); }
107 inline CreateScriptRequest& WithZipFile(const Aws::Utils::ByteBuffer& value) { SetZipFile(value); return *this;}
108 inline CreateScriptRequest& WithZipFile(Aws::Utils::ByteBuffer&& value) { SetZipFile(std::move(value)); return *this;}
110
112
128 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
129 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
130 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
131 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
132 inline CreateScriptRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
133 inline CreateScriptRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
134 inline CreateScriptRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
135 inline CreateScriptRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
137 private:
138
139 Aws::String m_name;
140 bool m_nameHasBeenSet = false;
141
142 Aws::String m_version;
143 bool m_versionHasBeenSet = false;
144
145 S3Location m_storageLocation;
146 bool m_storageLocationHasBeenSet = false;
147
148 Aws::Utils::ByteBuffer m_zipFile;
149 bool m_zipFileHasBeenSet = false;
150
151 Aws::Vector<Tag> m_tags;
152 bool m_tagsHasBeenSet = false;
153 };
154
155} // namespace Model
156} // namespace GameLift
157} // namespace Aws
void SetTags(const Aws::Vector< Tag > &value)
const Aws::Vector< Tag > & GetTags() const
CreateScriptRequest & WithVersion(const Aws::String &value)
CreateScriptRequest & WithTags(Aws::Vector< Tag > &&value)
void SetZipFile(Aws::Utils::ByteBuffer &&value)
void SetZipFile(const Aws::Utils::ByteBuffer &value)
AWS_GAMELIFT_API Aws::String SerializePayload() const override
const Aws::Utils::ByteBuffer & GetZipFile() const
CreateScriptRequest & WithName(Aws::String &&value)
CreateScriptRequest & WithTags(const Aws::Vector< Tag > &value)
CreateScriptRequest & WithName(const Aws::String &value)
CreateScriptRequest & WithStorageLocation(S3Location &&value)
CreateScriptRequest & WithZipFile(Aws::Utils::ByteBuffer &&value)
CreateScriptRequest & WithVersion(const char *value)
CreateScriptRequest & WithName(const char *value)
void SetVersion(const Aws::String &value)
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateScriptRequest & AddTags(const Tag &value)
CreateScriptRequest & WithStorageLocation(const S3Location &value)
CreateScriptRequest & WithZipFile(const Aws::Utils::ByteBuffer &value)
void SetTags(Aws::Vector< Tag > &&value)
void SetStorageLocation(const S3Location &value)
CreateScriptRequest & AddTags(Tag &&value)
CreateScriptRequest & WithVersion(Aws::String &&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