/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace imagebuilder { namespace Model { /** */ class UpdateDistributionConfigurationRequest : public ImagebuilderRequest { public: AWS_IMAGEBUILDER_API UpdateDistributionConfigurationRequest(); // 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 "UpdateDistributionConfiguration"; } AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override; /** *

The Amazon Resource Name (ARN) of the distribution configuration that you * want to update.

*/ inline const Aws::String& GetDistributionConfigurationArn() const{ return m_distributionConfigurationArn; } /** *

The Amazon Resource Name (ARN) of the distribution configuration that you * want to update.

*/ inline bool DistributionConfigurationArnHasBeenSet() const { return m_distributionConfigurationArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the distribution configuration that you * want to update.

*/ inline void SetDistributionConfigurationArn(const Aws::String& value) { m_distributionConfigurationArnHasBeenSet = true; m_distributionConfigurationArn = value; } /** *

The Amazon Resource Name (ARN) of the distribution configuration that you * want to update.

*/ inline void SetDistributionConfigurationArn(Aws::String&& value) { m_distributionConfigurationArnHasBeenSet = true; m_distributionConfigurationArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the distribution configuration that you * want to update.

*/ inline void SetDistributionConfigurationArn(const char* value) { m_distributionConfigurationArnHasBeenSet = true; m_distributionConfigurationArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the distribution configuration that you * want to update.

*/ inline UpdateDistributionConfigurationRequest& WithDistributionConfigurationArn(const Aws::String& value) { SetDistributionConfigurationArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the distribution configuration that you * want to update.

*/ inline UpdateDistributionConfigurationRequest& WithDistributionConfigurationArn(Aws::String&& value) { SetDistributionConfigurationArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the distribution configuration that you * want to update.

*/ inline UpdateDistributionConfigurationRequest& WithDistributionConfigurationArn(const char* value) { SetDistributionConfigurationArn(value); return *this;} /** *

The description of the distribution configuration.

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

The description of the distribution configuration.

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

The description of the distribution configuration.

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

The description of the distribution configuration.

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

The description of the distribution configuration.

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

The description of the distribution configuration.

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

The description of the distribution configuration.

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

The description of the distribution configuration.

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

The distributions of the distribution configuration.

*/ inline const Aws::Vector& GetDistributions() const{ return m_distributions; } /** *

The distributions of the distribution configuration.

*/ inline bool DistributionsHasBeenSet() const { return m_distributionsHasBeenSet; } /** *

The distributions of the distribution configuration.

*/ inline void SetDistributions(const Aws::Vector& value) { m_distributionsHasBeenSet = true; m_distributions = value; } /** *

The distributions of the distribution configuration.

*/ inline void SetDistributions(Aws::Vector&& value) { m_distributionsHasBeenSet = true; m_distributions = std::move(value); } /** *

The distributions of the distribution configuration.

*/ inline UpdateDistributionConfigurationRequest& WithDistributions(const Aws::Vector& value) { SetDistributions(value); return *this;} /** *

The distributions of the distribution configuration.

*/ inline UpdateDistributionConfigurationRequest& WithDistributions(Aws::Vector&& value) { SetDistributions(std::move(value)); return *this;} /** *

The distributions of the distribution configuration.

*/ inline UpdateDistributionConfigurationRequest& AddDistributions(const Distribution& value) { m_distributionsHasBeenSet = true; m_distributions.push_back(value); return *this; } /** *

The distributions of the distribution configuration.

*/ inline UpdateDistributionConfigurationRequest& AddDistributions(Distribution&& value) { m_distributionsHasBeenSet = true; m_distributions.push_back(std::move(value)); return *this; } /** *

The idempotency token of the distribution configuration.

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

The idempotency token of the distribution configuration.

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

The idempotency token of the distribution configuration.

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

The idempotency token of the distribution configuration.

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

The idempotency token of the distribution configuration.

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

The idempotency token of the distribution configuration.

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

The idempotency token of the distribution configuration.

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

The idempotency token of the distribution configuration.

*/ inline UpdateDistributionConfigurationRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} private: Aws::String m_distributionConfigurationArn; bool m_distributionConfigurationArnHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Vector m_distributions; bool m_distributionsHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; }; } // namespace Model } // namespace imagebuilder } // namespace Aws