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

Container for request parameters to the UpdatePackage * operation.

See Also:

AWS * API Reference

*/ class UpdatePackageRequest : public OpenSearchServiceRequest { public: AWS_OPENSEARCHSERVICE_API UpdatePackageRequest(); // 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 "UpdatePackage"; } AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override; /** *

The unique identifier for the package.

*/ inline const Aws::String& GetPackageID() const{ return m_packageID; } /** *

The unique identifier for the package.

*/ inline bool PackageIDHasBeenSet() const { return m_packageIDHasBeenSet; } /** *

The unique identifier for the package.

*/ inline void SetPackageID(const Aws::String& value) { m_packageIDHasBeenSet = true; m_packageID = value; } /** *

The unique identifier for the package.

*/ inline void SetPackageID(Aws::String&& value) { m_packageIDHasBeenSet = true; m_packageID = std::move(value); } /** *

The unique identifier for the package.

*/ inline void SetPackageID(const char* value) { m_packageIDHasBeenSet = true; m_packageID.assign(value); } /** *

The unique identifier for the package.

*/ inline UpdatePackageRequest& WithPackageID(const Aws::String& value) { SetPackageID(value); return *this;} /** *

The unique identifier for the package.

*/ inline UpdatePackageRequest& WithPackageID(Aws::String&& value) { SetPackageID(std::move(value)); return *this;} /** *

The unique identifier for the package.

*/ inline UpdatePackageRequest& WithPackageID(const char* value) { SetPackageID(value); return *this;} /** *

Amazon S3 bucket and key for the package.

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

Amazon S3 bucket and key for the package.

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

Amazon S3 bucket and key for the package.

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

Amazon S3 bucket and key for the package.

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

Amazon S3 bucket and key for the package.

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

Amazon S3 bucket and key for the package.

*/ inline UpdatePackageRequest& WithPackageSource(PackageSource&& value) { SetPackageSource(std::move(value)); return *this;} /** *

A new description of the package.

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

A new description of the package.

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

A new description of the package.

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

A new description of the package.

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

A new description of the package.

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

A new description of the package.

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

A new description of the package.

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

A new description of the package.

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

Commit message for the updated file, which is shown as part of * GetPackageVersionHistoryResponse.

*/ inline const Aws::String& GetCommitMessage() const{ return m_commitMessage; } /** *

Commit message for the updated file, which is shown as part of * GetPackageVersionHistoryResponse.

*/ inline bool CommitMessageHasBeenSet() const { return m_commitMessageHasBeenSet; } /** *

Commit message for the updated file, which is shown as part of * GetPackageVersionHistoryResponse.

*/ inline void SetCommitMessage(const Aws::String& value) { m_commitMessageHasBeenSet = true; m_commitMessage = value; } /** *

Commit message for the updated file, which is shown as part of * GetPackageVersionHistoryResponse.

*/ inline void SetCommitMessage(Aws::String&& value) { m_commitMessageHasBeenSet = true; m_commitMessage = std::move(value); } /** *

Commit message for the updated file, which is shown as part of * GetPackageVersionHistoryResponse.

*/ inline void SetCommitMessage(const char* value) { m_commitMessageHasBeenSet = true; m_commitMessage.assign(value); } /** *

Commit message for the updated file, which is shown as part of * GetPackageVersionHistoryResponse.

*/ inline UpdatePackageRequest& WithCommitMessage(const Aws::String& value) { SetCommitMessage(value); return *this;} /** *

Commit message for the updated file, which is shown as part of * GetPackageVersionHistoryResponse.

*/ inline UpdatePackageRequest& WithCommitMessage(Aws::String&& value) { SetCommitMessage(std::move(value)); return *this;} /** *

Commit message for the updated file, which is shown as part of * GetPackageVersionHistoryResponse.

*/ inline UpdatePackageRequest& WithCommitMessage(const char* value) { SetCommitMessage(value); return *this;} private: Aws::String m_packageID; bool m_packageIDHasBeenSet = false; PackageSource m_packageSource; bool m_packageSourceHasBeenSet = false; Aws::String m_packageDescription; bool m_packageDescriptionHasBeenSet = false; Aws::String m_commitMessage; bool m_commitMessageHasBeenSet = false; }; } // namespace Model } // namespace OpenSearchService } // namespace Aws