/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Lightsail { namespace Model { /** */ class UpdateBucketBundleRequest : public LightsailRequest { public: AWS_LIGHTSAIL_API UpdateBucketBundleRequest(); // 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 "UpdateBucketBundle"; } AWS_LIGHTSAIL_API Aws::String SerializePayload() const override; AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the bucket for which to update the bundle.

*/ inline const Aws::String& GetBucketName() const{ return m_bucketName; } /** *

The name of the bucket for which to update the bundle.

*/ inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; } /** *

The name of the bucket for which to update the bundle.

*/ inline void SetBucketName(const Aws::String& value) { m_bucketNameHasBeenSet = true; m_bucketName = value; } /** *

The name of the bucket for which to update the bundle.

*/ inline void SetBucketName(Aws::String&& value) { m_bucketNameHasBeenSet = true; m_bucketName = std::move(value); } /** *

The name of the bucket for which to update the bundle.

*/ inline void SetBucketName(const char* value) { m_bucketNameHasBeenSet = true; m_bucketName.assign(value); } /** *

The name of the bucket for which to update the bundle.

*/ inline UpdateBucketBundleRequest& WithBucketName(const Aws::String& value) { SetBucketName(value); return *this;} /** *

The name of the bucket for which to update the bundle.

*/ inline UpdateBucketBundleRequest& WithBucketName(Aws::String&& value) { SetBucketName(std::move(value)); return *this;} /** *

The name of the bucket for which to update the bundle.

*/ inline UpdateBucketBundleRequest& WithBucketName(const char* value) { SetBucketName(value); return *this;} /** *

The ID of the new bundle to apply to the bucket.

Use the GetBucketBundles * action to get a list of bundle IDs that you can specify.

*/ inline const Aws::String& GetBundleId() const{ return m_bundleId; } /** *

The ID of the new bundle to apply to the bucket.

Use the GetBucketBundles * action to get a list of bundle IDs that you can specify.

*/ inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; } /** *

The ID of the new bundle to apply to the bucket.

Use the GetBucketBundles * action to get a list of bundle IDs that you can specify.

*/ inline void SetBundleId(const Aws::String& value) { m_bundleIdHasBeenSet = true; m_bundleId = value; } /** *

The ID of the new bundle to apply to the bucket.

Use the GetBucketBundles * action to get a list of bundle IDs that you can specify.

*/ inline void SetBundleId(Aws::String&& value) { m_bundleIdHasBeenSet = true; m_bundleId = std::move(value); } /** *

The ID of the new bundle to apply to the bucket.

Use the GetBucketBundles * action to get a list of bundle IDs that you can specify.

*/ inline void SetBundleId(const char* value) { m_bundleIdHasBeenSet = true; m_bundleId.assign(value); } /** *

The ID of the new bundle to apply to the bucket.

Use the GetBucketBundles * action to get a list of bundle IDs that you can specify.

*/ inline UpdateBucketBundleRequest& WithBundleId(const Aws::String& value) { SetBundleId(value); return *this;} /** *

The ID of the new bundle to apply to the bucket.

Use the GetBucketBundles * action to get a list of bundle IDs that you can specify.

*/ inline UpdateBucketBundleRequest& WithBundleId(Aws::String&& value) { SetBundleId(std::move(value)); return *this;} /** *

The ID of the new bundle to apply to the bucket.

Use the GetBucketBundles * action to get a list of bundle IDs that you can specify.

*/ inline UpdateBucketBundleRequest& WithBundleId(const char* value) { SetBundleId(value); return *this;} private: Aws::String m_bucketName; bool m_bucketNameHasBeenSet = false; Aws::String m_bundleId; bool m_bundleIdHasBeenSet = false; }; } // namespace Model } // namespace Lightsail } // namespace Aws