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/opensearch/OpenSearchService_EXPORTS.h>
8#include <aws/opensearch/OpenSearchServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/opensearch/model/PackageType.h>
11#include <aws/opensearch/model/PackageSource.h>
12#include <utility>
13
14namespace Aws
15{
16namespace OpenSearchService
17{
18namespace Model
19{
20
28 {
29 public:
30 AWS_OPENSEARCHSERVICE_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_OPENSEARCHSERVICE_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
85 inline const PackageSource& GetPackageSource() const{ return m_packageSource; }
86 inline bool PackageSourceHasBeenSet() const { return m_packageSourceHasBeenSet; }
87 inline void SetPackageSource(const PackageSource& value) { m_packageSourceHasBeenSet = true; m_packageSource = value; }
88 inline void SetPackageSource(PackageSource&& value) { m_packageSourceHasBeenSet = true; m_packageSource = std::move(value); }
89 inline CreatePackageRequest& WithPackageSource(const PackageSource& value) { SetPackageSource(value); return *this;}
90 inline CreatePackageRequest& WithPackageSource(PackageSource&& value) { SetPackageSource(std::move(value)); return *this;}
92 private:
93
94 Aws::String m_packageName;
95 bool m_packageNameHasBeenSet = false;
96
97 PackageType m_packageType;
98 bool m_packageTypeHasBeenSet = false;
99
100 Aws::String m_packageDescription;
101 bool m_packageDescriptionHasBeenSet = false;
102
103 PackageSource m_packageSource;
104 bool m_packageSourceHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace OpenSearchService
109} // namespace Aws
CreatePackageRequest & WithPackageName(Aws::String &&value)
CreatePackageRequest & WithPackageName(const Aws::String &value)
CreatePackageRequest & WithPackageDescription(const char *value)
CreatePackageRequest & WithPackageDescription(Aws::String &&value)
CreatePackageRequest & WithPackageName(const char *value)
CreatePackageRequest & WithPackageDescription(const Aws::String &value)
CreatePackageRequest & WithPackageType(const PackageType &value)
virtual const char * GetServiceRequestName() const override
CreatePackageRequest & WithPackageType(PackageType &&value)
AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override
CreatePackageRequest & WithPackageSource(PackageSource &&value)
CreatePackageRequest & WithPackageSource(const PackageSource &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String