/** * 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 Panorama { namespace Model { /** */ class CreatePackageRequest : public PanoramaRequest { public: AWS_PANORAMA_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_PANORAMA_API Aws::String SerializePayload() const override; /** *

A name for the package.

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

A name for the package.

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

A name for the package.

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

A name for the package.

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

A name for the package.

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

A name for the package.

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

A name for the package.

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

A name for the package.

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

Tags for the package.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

Tags for the package.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

Tags for the package.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

Tags for the package.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

Tags for the package.

*/ inline CreatePackageRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

Tags for the package.

*/ inline CreatePackageRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

Tags for the package.

*/ inline CreatePackageRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

Tags for the package.

*/ inline CreatePackageRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

Tags for the package.

*/ inline CreatePackageRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

Tags for the package.

*/ inline CreatePackageRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

Tags for the package.

*/ inline CreatePackageRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

Tags for the package.

*/ inline CreatePackageRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

Tags for the package.

*/ inline CreatePackageRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_packageName; bool m_packageNameHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace Panorama } // namespace Aws