AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreatePackageRequest.h
1
6#pragma once
7#include <aws/es/ElasticsearchService_EXPORTS.h>
8#include <aws/es/ElasticsearchServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/es/model/PackageType.h>
11#include <aws/es/model/PackageSource.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ElasticsearchService
17{
18namespace Model
19{
20
28 {
29 public:
30 AWS_ELASTICSEARCHSERVICE_API CreatePackageRequest();
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_ELASTICSEARCHSERVICE_API Aws::String SerializePayload() const override;
39
40
42
45 inline const Aws::String& GetPackageName() const{ return m_packageName; }
46 inline bool PackageNameHasBeenSet() const { return m_packageNameHasBeenSet; }
47 inline void SetPackageName(const Aws::String& value) { m_packageNameHasBeenSet = true; m_packageName = value; }
48 inline void SetPackageName(Aws::String&& value) { m_packageNameHasBeenSet = true; m_packageName = std::move(value); }
49 inline void SetPackageName(const char* value) { m_packageNameHasBeenSet = true; m_packageName.assign(value); }
50 inline CreatePackageRequest& WithPackageName(const Aws::String& value) { SetPackageName(value); return *this;}
51 inline CreatePackageRequest& WithPackageName(Aws::String&& value) { SetPackageName(std::move(value)); return *this;}
52 inline CreatePackageRequest& WithPackageName(const char* value) { SetPackageName(value); return *this;}
54
56
59 inline const PackageType& GetPackageType() const{ return m_packageType; }
60 inline bool PackageTypeHasBeenSet() const { return m_packageTypeHasBeenSet; }
61 inline void SetPackageType(const PackageType& value) { m_packageTypeHasBeenSet = true; m_packageType = value; }
62 inline void SetPackageType(PackageType&& value) { m_packageTypeHasBeenSet = true; m_packageType = std::move(value); }
63 inline CreatePackageRequest& WithPackageType(const PackageType& value) { SetPackageType(value); return *this;}
64 inline CreatePackageRequest& WithPackageType(PackageType&& value) { SetPackageType(std::move(value)); return *this;}
66
68
71 inline const Aws::String& GetPackageDescription() const{ return m_packageDescription; }
72 inline bool PackageDescriptionHasBeenSet() const { return m_packageDescriptionHasBeenSet; }
73 inline void SetPackageDescription(const Aws::String& value) { m_packageDescriptionHasBeenSet = true; m_packageDescription = value; }
74 inline void SetPackageDescription(Aws::String&& value) { m_packageDescriptionHasBeenSet = true; m_packageDescription = std::move(value); }
75 inline void SetPackageDescription(const char* value) { m_packageDescriptionHasBeenSet = true; m_packageDescription.assign(value); }
77 inline CreatePackageRequest& WithPackageDescription(Aws::String&& value) { SetPackageDescription(std::move(value)); return *this;}
78 inline CreatePackageRequest& WithPackageDescription(const char* value) { SetPackageDescription(value); return *this;}
80
82
86 inline const PackageSource& GetPackageSource() const{ return m_packageSource; }
87 inline bool PackageSourceHasBeenSet() const { return m_packageSourceHasBeenSet; }
88 inline void SetPackageSource(const PackageSource& value) { m_packageSourceHasBeenSet = true; m_packageSource = value; }
89 inline void SetPackageSource(PackageSource&& value) { m_packageSourceHasBeenSet = true; m_packageSource = std::move(value); }
90 inline CreatePackageRequest& WithPackageSource(const PackageSource& value) { SetPackageSource(value); return *this;}
91 inline CreatePackageRequest& WithPackageSource(PackageSource&& value) { SetPackageSource(std::move(value)); return *this;}
93 private:
94
95 Aws::String m_packageName;
96 bool m_packageNameHasBeenSet = false;
97
98 PackageType m_packageType;
99 bool m_packageTypeHasBeenSet = false;
100
101 Aws::String m_packageDescription;
102 bool m_packageDescriptionHasBeenSet = false;
103
104 PackageSource m_packageSource;
105 bool m_packageSourceHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace ElasticsearchService
110} // namespace Aws
virtual const char * GetServiceRequestName() const override
CreatePackageRequest & WithPackageDescription(const char *value)
CreatePackageRequest & WithPackageType(PackageType &&value)
CreatePackageRequest & WithPackageName(const Aws::String &value)
CreatePackageRequest & WithPackageDescription(const Aws::String &value)
CreatePackageRequest & WithPackageName(Aws::String &&value)
AWS_ELASTICSEARCHSERVICE_API Aws::String SerializePayload() const override
CreatePackageRequest & WithPackageSource(const PackageSource &value)
CreatePackageRequest & WithPackageSource(PackageSource &&value)
CreatePackageRequest & WithPackageDescription(Aws::String &&value)
CreatePackageRequest & WithPackageName(const char *value)
CreatePackageRequest & WithPackageType(const PackageType &value)
AWS_ELASTICSEARCHSERVICE_API CreatePackageRequest()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String