/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace OpenSearchService { namespace Model { /** *

Container for request parameters to the CreatePackage * operation.

See Also:

AWS * API Reference

*/ class CreatePackageRequest : public OpenSearchServiceRequest { public: AWS_OPENSEARCHSERVICE_API CreatePackageRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreatePackage"; } AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override; /** *

Unique name for the package.

*/ inline const Aws::String& GetPackageName() const{ return m_packageName; } /** *

Unique name for the package.

*/ inline bool PackageNameHasBeenSet() const { return m_packageNameHasBeenSet; } /** *

Unique name for the package.

*/ inline void SetPackageName(const Aws::String& value) { m_packageNameHasBeenSet = true; m_packageName = value; } /** *

Unique name for the package.

*/ inline void SetPackageName(Aws::String&& value) { m_packageNameHasBeenSet = true; m_packageName = std::move(value); } /** *

Unique name for the package.

*/ inline void SetPackageName(const char* value) { m_packageNameHasBeenSet = true; m_packageName.assign(value); } /** *

Unique name for the package.

*/ inline CreatePackageRequest& WithPackageName(const Aws::String& value) { SetPackageName(value); return *this;} /** *

Unique name for the package.

*/ inline CreatePackageRequest& WithPackageName(Aws::String&& value) { SetPackageName(std::move(value)); return *this;} /** *

Unique name for the package.

*/ inline CreatePackageRequest& WithPackageName(const char* value) { SetPackageName(value); return *this;} /** *

The type of package.

*/ inline const PackageType& GetPackageType() const{ return m_packageType; } /** *

The type of package.

*/ inline bool PackageTypeHasBeenSet() const { return m_packageTypeHasBeenSet; } /** *

The type of package.

*/ inline void SetPackageType(const PackageType& value) { m_packageTypeHasBeenSet = true; m_packageType = value; } /** *

The type of package.

*/ inline void SetPackageType(PackageType&& value) { m_packageTypeHasBeenSet = true; m_packageType = std::move(value); } /** *

The type of package.

*/ inline CreatePackageRequest& WithPackageType(const PackageType& value) { SetPackageType(value); return *this;} /** *

The type of package.

*/ inline CreatePackageRequest& WithPackageType(PackageType&& value) { SetPackageType(std::move(value)); return *this;} /** *

Description of the package.

*/ inline const Aws::String& GetPackageDescription() const{ return m_packageDescription; } /** *

Description of the package.

*/ inline bool PackageDescriptionHasBeenSet() const { return m_packageDescriptionHasBeenSet; } /** *

Description of the package.

*/ inline void SetPackageDescription(const Aws::String& value) { m_packageDescriptionHasBeenSet = true; m_packageDescription = value; } /** *

Description of the package.

*/ inline void SetPackageDescription(Aws::String&& value) { m_packageDescriptionHasBeenSet = true; m_packageDescription = std::move(value); } /** *

Description of the package.

*/ inline void SetPackageDescription(const char* value) { m_packageDescriptionHasBeenSet = true; m_packageDescription.assign(value); } /** *

Description of the package.

*/ inline CreatePackageRequest& WithPackageDescription(const Aws::String& value) { SetPackageDescription(value); return *this;} /** *

Description of the package.

*/ inline CreatePackageRequest& WithPackageDescription(Aws::String&& value) { SetPackageDescription(std::move(value)); return *this;} /** *

Description of the package.

*/ inline CreatePackageRequest& WithPackageDescription(const char* value) { SetPackageDescription(value); return *this;} /** *

The Amazon S3 location from which to import the package.

*/ inline const PackageSource& GetPackageSource() const{ return m_packageSource; } /** *

The Amazon S3 location from which to import the package.

*/ inline bool PackageSourceHasBeenSet() const { return m_packageSourceHasBeenSet; } /** *

The Amazon S3 location from which to import the package.

*/ inline void SetPackageSource(const PackageSource& value) { m_packageSourceHasBeenSet = true; m_packageSource = value; } /** *

The Amazon S3 location from which to import the package.

*/ inline void SetPackageSource(PackageSource&& value) { m_packageSourceHasBeenSet = true; m_packageSource = std::move(value); } /** *

The Amazon S3 location from which to import the package.

*/ inline CreatePackageRequest& WithPackageSource(const PackageSource& value) { SetPackageSource(value); return *this;} /** *

The Amazon S3 location from which to import the package.

*/ inline CreatePackageRequest& WithPackageSource(PackageSource&& value) { SetPackageSource(std::move(value)); return *this;} private: Aws::String m_packageName; bool m_packageNameHasBeenSet = false; PackageType m_packageType; bool m_packageTypeHasBeenSet = false; Aws::String m_packageDescription; bool m_packageDescriptionHasBeenSet = false; PackageSource m_packageSource; bool m_packageSourceHasBeenSet = false; }; } // namespace Model } // namespace OpenSearchService } // namespace Aws