AWS SDK for C++  1.9.97
AWS SDK for C++
CreatePackageRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace ElasticsearchService
17 {
18 namespace Model
19 {
20 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "CreatePackage"; }
37 
38  Aws::String SerializePayload() const override;
39 
40 
44  inline const Aws::String& GetPackageName() const{ return m_packageName; }
45 
49  inline bool PackageNameHasBeenSet() const { return m_packageNameHasBeenSet; }
50 
54  inline void SetPackageName(const Aws::String& value) { m_packageNameHasBeenSet = true; m_packageName = value; }
55 
59  inline void SetPackageName(Aws::String&& value) { m_packageNameHasBeenSet = true; m_packageName = std::move(value); }
60 
64  inline void SetPackageName(const char* value) { m_packageNameHasBeenSet = true; m_packageName.assign(value); }
65 
69  inline CreatePackageRequest& WithPackageName(const Aws::String& value) { SetPackageName(value); return *this;}
70 
74  inline CreatePackageRequest& WithPackageName(Aws::String&& value) { SetPackageName(std::move(value)); return *this;}
75 
79  inline CreatePackageRequest& WithPackageName(const char* value) { SetPackageName(value); return *this;}
80 
81 
85  inline const PackageType& GetPackageType() const{ return m_packageType; }
86 
90  inline bool PackageTypeHasBeenSet() const { return m_packageTypeHasBeenSet; }
91 
95  inline void SetPackageType(const PackageType& value) { m_packageTypeHasBeenSet = true; m_packageType = value; }
96 
100  inline void SetPackageType(PackageType&& value) { m_packageTypeHasBeenSet = true; m_packageType = std::move(value); }
101 
105  inline CreatePackageRequest& WithPackageType(const PackageType& value) { SetPackageType(value); return *this;}
106 
110  inline CreatePackageRequest& WithPackageType(PackageType&& value) { SetPackageType(std::move(value)); return *this;}
111 
112 
116  inline const Aws::String& GetPackageDescription() const{ return m_packageDescription; }
117 
121  inline bool PackageDescriptionHasBeenSet() const { return m_packageDescriptionHasBeenSet; }
122 
126  inline void SetPackageDescription(const Aws::String& value) { m_packageDescriptionHasBeenSet = true; m_packageDescription = value; }
127 
131  inline void SetPackageDescription(Aws::String&& value) { m_packageDescriptionHasBeenSet = true; m_packageDescription = std::move(value); }
132 
136  inline void SetPackageDescription(const char* value) { m_packageDescriptionHasBeenSet = true; m_packageDescription.assign(value); }
137 
141  inline CreatePackageRequest& WithPackageDescription(const Aws::String& value) { SetPackageDescription(value); return *this;}
142 
146  inline CreatePackageRequest& WithPackageDescription(Aws::String&& value) { SetPackageDescription(std::move(value)); return *this;}
147 
151  inline CreatePackageRequest& WithPackageDescription(const char* value) { SetPackageDescription(value); return *this;}
152 
153 
158  inline const PackageSource& GetPackageSource() const{ return m_packageSource; }
159 
164  inline bool PackageSourceHasBeenSet() const { return m_packageSourceHasBeenSet; }
165 
170  inline void SetPackageSource(const PackageSource& value) { m_packageSourceHasBeenSet = true; m_packageSource = value; }
171 
176  inline void SetPackageSource(PackageSource&& value) { m_packageSourceHasBeenSet = true; m_packageSource = std::move(value); }
177 
182  inline CreatePackageRequest& WithPackageSource(const PackageSource& value) { SetPackageSource(value); return *this;}
183 
188  inline CreatePackageRequest& WithPackageSource(PackageSource&& value) { SetPackageSource(std::move(value)); return *this;}
189 
190  private:
191 
192  Aws::String m_packageName;
193  bool m_packageNameHasBeenSet;
194 
195  PackageType m_packageType;
196  bool m_packageTypeHasBeenSet;
197 
198  Aws::String m_packageDescription;
199  bool m_packageDescriptionHasBeenSet;
200 
201  PackageSource m_packageSource;
202  bool m_packageSourceHasBeenSet;
203  };
204 
205 } // namespace Model
206 } // namespace ElasticsearchService
207 } // namespace Aws
Aws::ElasticsearchService::Model::CreatePackageRequest
Definition: CreatePackageRequest.h:28
Aws::ElasticsearchService::Model::CreatePackageRequest::PackageDescriptionHasBeenSet
bool PackageDescriptionHasBeenSet() const
Definition: CreatePackageRequest.h:121
Aws::ElasticsearchService::Model::CreatePackageRequest::WithPackageName
CreatePackageRequest & WithPackageName(const char *value)
Definition: CreatePackageRequest.h:79
Aws::ElasticsearchService::ElasticsearchServiceRequest
Definition: ElasticsearchServiceRequest.h:17
Aws::ElasticsearchService::Model::CreatePackageRequest::WithPackageDescription
CreatePackageRequest & WithPackageDescription(const char *value)
Definition: CreatePackageRequest.h:151
Aws::ElasticsearchService::Model::CreatePackageRequest::GetPackageType
const PackageType & GetPackageType() const
Definition: CreatePackageRequest.h:85
ElasticsearchServiceRequest.h
Aws::ElasticsearchService::Model::CreatePackageRequest::PackageSourceHasBeenSet
bool PackageSourceHasBeenSet() const
Definition: CreatePackageRequest.h:164
Aws::ElasticsearchService::Model::PackageType
PackageType
Definition: PackageType.h:17
Aws::ElasticsearchService::Model::CreatePackageRequest::GetPackageSource
const PackageSource & GetPackageSource() const
Definition: CreatePackageRequest.h:158
Aws::ElasticsearchService::Model::CreatePackageRequest::GetPackageName
const Aws::String & GetPackageName() const
Definition: CreatePackageRequest.h:44
Aws::ElasticsearchService::Model::CreatePackageRequest::WithPackageName
CreatePackageRequest & WithPackageName(Aws::String &&value)
Definition: CreatePackageRequest.h:74
Aws::ElasticsearchService::Model::CreatePackageRequest::SetPackageDescription
void SetPackageDescription(const char *value)
Definition: CreatePackageRequest.h:136
Aws::ElasticsearchService::Model::CreatePackageRequest::WithPackageDescription
CreatePackageRequest & WithPackageDescription(Aws::String &&value)
Definition: CreatePackageRequest.h:146
Aws::ElasticsearchService::Model::CreatePackageRequest::GetPackageDescription
const Aws::String & GetPackageDescription() const
Definition: CreatePackageRequest.h:116
Aws::ElasticsearchService::Model::CreatePackageRequest::SetPackageType
void SetPackageType(const PackageType &value)
Definition: CreatePackageRequest.h:95
Aws::ElasticsearchService::Model::CreatePackageRequest::WithPackageName
CreatePackageRequest & WithPackageName(const Aws::String &value)
Definition: CreatePackageRequest.h:69
AWS_ELASTICSEARCHSERVICE_API
#define AWS_ELASTICSEARCHSERVICE_API
Definition: ElasticsearchService_EXPORTS.h:28
ElasticsearchService_EXPORTS.h
Aws::ElasticsearchService::Model::CreatePackageRequest::PackageNameHasBeenSet
bool PackageNameHasBeenSet() const
Definition: CreatePackageRequest.h:49
Aws::ElasticsearchService::Model::CreatePackageRequest::WithPackageSource
CreatePackageRequest & WithPackageSource(const PackageSource &value)
Definition: CreatePackageRequest.h:182
Aws::ElasticsearchService::Model::CreatePackageRequest::SetPackageType
void SetPackageType(PackageType &&value)
Definition: CreatePackageRequest.h:100
Aws::ElasticsearchService::Model::CreatePackageRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ElasticsearchService::Model::CreatePackageRequest::SetPackageSource
void SetPackageSource(PackageSource &&value)
Definition: CreatePackageRequest.h:176
Aws::ElasticsearchService::Model::CreatePackageRequest::WithPackageSource
CreatePackageRequest & WithPackageSource(PackageSource &&value)
Definition: CreatePackageRequest.h:188
AWSString.h
Aws::ElasticsearchService::Model::CreatePackageRequest::SetPackageName
void SetPackageName(Aws::String &&value)
Definition: CreatePackageRequest.h:59
Aws::ElasticsearchService::Model::CreatePackageRequest::SetPackageName
void SetPackageName(const Aws::String &value)
Definition: CreatePackageRequest.h:54
Aws::ElasticsearchService::Model::CreatePackageRequest::WithPackageType
CreatePackageRequest & WithPackageType(const PackageType &value)
Definition: CreatePackageRequest.h:105
Aws::ElasticsearchService::Model::CreatePackageRequest::WithPackageDescription
CreatePackageRequest & WithPackageDescription(const Aws::String &value)
Definition: CreatePackageRequest.h:141
Aws::ElasticsearchService::Model::CreatePackageRequest::SetPackageName
void SetPackageName(const char *value)
Definition: CreatePackageRequest.h:64
Aws::ElasticsearchService::Model::CreatePackageRequest::CreatePackageRequest
CreatePackageRequest()
Aws::ElasticsearchService::Model::CreatePackageRequest::SetPackageSource
void SetPackageSource(const PackageSource &value)
Definition: CreatePackageRequest.h:170
PackageType.h
Aws::ElasticsearchService::Model::CreatePackageRequest::WithPackageType
CreatePackageRequest & WithPackageType(PackageType &&value)
Definition: CreatePackageRequest.h:110
Aws
Definition: AccessManagementClient.h:15
PackageSource.h
Aws::ElasticsearchService::Model::CreatePackageRequest::SetPackageDescription
void SetPackageDescription(const Aws::String &value)
Definition: CreatePackageRequest.h:126
Aws::ElasticsearchService::Model::CreatePackageRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreatePackageRequest.h:36
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ElasticsearchService::Model::CreatePackageRequest::PackageTypeHasBeenSet
bool PackageTypeHasBeenSet() const
Definition: CreatePackageRequest.h:90
Aws::ElasticsearchService::Model::CreatePackageRequest::SetPackageDescription
void SetPackageDescription(Aws::String &&value)
Definition: CreatePackageRequest.h:131
Aws::ElasticsearchService::Model::PackageSource
Definition: PackageSource.h:33