/** * 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 Http { class URI; } //namespace Http namespace IoT { namespace Model { /** */ class CreatePackageVersionRequest : public IoTRequest { public: AWS_IOT_API CreatePackageVersionRequest(); // 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 "CreatePackageVersion"; } AWS_IOT_API Aws::String SerializePayload() const override; AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

The name of the associated package.

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

The name of the associated package.

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

The name of the associated package.

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

The name of the associated package.

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

The name of the associated package.

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

The name of the associated package.

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

The name of the associated package.

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

The name of the associated package.

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

The name of the new package version.

*/ inline const Aws::String& GetVersionName() const{ return m_versionName; } /** *

The name of the new package version.

*/ inline bool VersionNameHasBeenSet() const { return m_versionNameHasBeenSet; } /** *

The name of the new package version.

*/ inline void SetVersionName(const Aws::String& value) { m_versionNameHasBeenSet = true; m_versionName = value; } /** *

The name of the new package version.

*/ inline void SetVersionName(Aws::String&& value) { m_versionNameHasBeenSet = true; m_versionName = std::move(value); } /** *

The name of the new package version.

*/ inline void SetVersionName(const char* value) { m_versionNameHasBeenSet = true; m_versionName.assign(value); } /** *

The name of the new package version.

*/ inline CreatePackageVersionRequest& WithVersionName(const Aws::String& value) { SetVersionName(value); return *this;} /** *

The name of the new package version.

*/ inline CreatePackageVersionRequest& WithVersionName(Aws::String&& value) { SetVersionName(std::move(value)); return *this;} /** *

The name of the new package version.

*/ inline CreatePackageVersionRequest& WithVersionName(const char* value) { SetVersionName(value); return *this;} /** *

A summary of the package version being created. This can be used to outline * the package's contents or purpose.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A summary of the package version being created. This can be used to outline * the package's contents or purpose.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A summary of the package version being created. This can be used to outline * the package's contents or purpose.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A summary of the package version being created. This can be used to outline * the package's contents or purpose.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A summary of the package version being created. This can be used to outline * the package's contents or purpose.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A summary of the package version being created. This can be used to outline * the package's contents or purpose.

*/ inline CreatePackageVersionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A summary of the package version being created. This can be used to outline * the package's contents or purpose.

*/ inline CreatePackageVersionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A summary of the package version being created. This can be used to outline * the package's contents or purpose.

*/ inline CreatePackageVersionRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

Metadata that can be used to define a package version’s configuration. For * example, the S3 file location, configuration options that are being sent to the * device or fleet.

The combined size of all the attributes on a package * version is limited to 3KB.

*/ inline const Aws::Map& GetAttributes() const{ return m_attributes; } /** *

Metadata that can be used to define a package version’s configuration. For * example, the S3 file location, configuration options that are being sent to the * device or fleet.

The combined size of all the attributes on a package * version is limited to 3KB.

*/ inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; } /** *

Metadata that can be used to define a package version’s configuration. For * example, the S3 file location, configuration options that are being sent to the * device or fleet.

The combined size of all the attributes on a package * version is limited to 3KB.

*/ inline void SetAttributes(const Aws::Map& value) { m_attributesHasBeenSet = true; m_attributes = value; } /** *

Metadata that can be used to define a package version’s configuration. For * example, the S3 file location, configuration options that are being sent to the * device or fleet.

The combined size of all the attributes on a package * version is limited to 3KB.

*/ inline void SetAttributes(Aws::Map&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); } /** *

Metadata that can be used to define a package version’s configuration. For * example, the S3 file location, configuration options that are being sent to the * device or fleet.

The combined size of all the attributes on a package * version is limited to 3KB.

*/ inline CreatePackageVersionRequest& WithAttributes(const Aws::Map& value) { SetAttributes(value); return *this;} /** *

Metadata that can be used to define a package version’s configuration. For * example, the S3 file location, configuration options that are being sent to the * device or fleet.

The combined size of all the attributes on a package * version is limited to 3KB.

*/ inline CreatePackageVersionRequest& WithAttributes(Aws::Map&& value) { SetAttributes(std::move(value)); return *this;} /** *

Metadata that can be used to define a package version’s configuration. For * example, the S3 file location, configuration options that are being sent to the * device or fleet.

The combined size of all the attributes on a package * version is limited to 3KB.

*/ inline CreatePackageVersionRequest& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; } /** *

Metadata that can be used to define a package version’s configuration. For * example, the S3 file location, configuration options that are being sent to the * device or fleet.

The combined size of all the attributes on a package * version is limited to 3KB.

*/ inline CreatePackageVersionRequest& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; } /** *

Metadata that can be used to define a package version’s configuration. For * example, the S3 file location, configuration options that are being sent to the * device or fleet.

The combined size of all the attributes on a package * version is limited to 3KB.

*/ inline CreatePackageVersionRequest& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; } /** *

Metadata that can be used to define a package version’s configuration. For * example, the S3 file location, configuration options that are being sent to the * device or fleet.

The combined size of all the attributes on a package * version is limited to 3KB.

*/ inline CreatePackageVersionRequest& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; } /** *

Metadata that can be used to define a package version’s configuration. For * example, the S3 file location, configuration options that are being sent to the * device or fleet.

The combined size of all the attributes on a package * version is limited to 3KB.

*/ inline CreatePackageVersionRequest& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; } /** *

Metadata that can be used to define a package version’s configuration. For * example, the S3 file location, configuration options that are being sent to the * device or fleet.

The combined size of all the attributes on a package * version is limited to 3KB.

*/ inline CreatePackageVersionRequest& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; } /** *

Metadata that can be used to define a package version’s configuration. For * example, the S3 file location, configuration options that are being sent to the * device or fleet.

The combined size of all the attributes on a package * version is limited to 3KB.

*/ inline CreatePackageVersionRequest& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; } /** *

Metadata that can be used to manage the package version.

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

Metadata that can be used to manage the package version.

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

Metadata that can be used to manage the package version.

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

Metadata that can be used to manage the package version.

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

Metadata that can be used to manage the package version.

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

Metadata that can be used to manage the package version.

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

Metadata that can be used to manage the package version.

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

Metadata that can be used to manage the package version.

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

Metadata that can be used to manage the package version.

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

Metadata that can be used to manage the package version.

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

Metadata that can be used to manage the package version.

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

Metadata that can be used to manage the package version.

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

Metadata that can be used to manage the package version.

*/ inline CreatePackageVersionRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

A unique case-sensitive identifier that you can provide to ensure the * idempotency of the request. Don't reuse this client token if a new idempotent * request is required.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

A unique case-sensitive identifier that you can provide to ensure the * idempotency of the request. Don't reuse this client token if a new idempotent * request is required.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

A unique case-sensitive identifier that you can provide to ensure the * idempotency of the request. Don't reuse this client token if a new idempotent * request is required.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

A unique case-sensitive identifier that you can provide to ensure the * idempotency of the request. Don't reuse this client token if a new idempotent * request is required.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

A unique case-sensitive identifier that you can provide to ensure the * idempotency of the request. Don't reuse this client token if a new idempotent * request is required.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

A unique case-sensitive identifier that you can provide to ensure the * idempotency of the request. Don't reuse this client token if a new idempotent * request is required.

*/ inline CreatePackageVersionRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

A unique case-sensitive identifier that you can provide to ensure the * idempotency of the request. Don't reuse this client token if a new idempotent * request is required.

*/ inline CreatePackageVersionRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

A unique case-sensitive identifier that you can provide to ensure the * idempotency of the request. Don't reuse this client token if a new idempotent * request is required.

*/ inline CreatePackageVersionRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} private: Aws::String m_packageName; bool m_packageNameHasBeenSet = false; Aws::String m_versionName; bool m_versionNameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Map m_attributes; bool m_attributesHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws