/** * 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 Route53 { namespace Model { /** *

A request to delete a specified traffic policy version.

See * Also:

AWS * API Reference

*/ class DeleteTrafficPolicyRequest : public Route53Request { public: AWS_ROUTE53_API DeleteTrafficPolicyRequest(); // 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 "DeleteTrafficPolicy"; } AWS_ROUTE53_API Aws::String SerializePayload() const override; /** *

The ID of the traffic policy that you want to delete.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The ID of the traffic policy that you want to delete.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The ID of the traffic policy that you want to delete.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The ID of the traffic policy that you want to delete.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The ID of the traffic policy that you want to delete.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The ID of the traffic policy that you want to delete.

*/ inline DeleteTrafficPolicyRequest& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The ID of the traffic policy that you want to delete.

*/ inline DeleteTrafficPolicyRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The ID of the traffic policy that you want to delete.

*/ inline DeleteTrafficPolicyRequest& WithId(const char* value) { SetId(value); return *this;} /** *

The version number of the traffic policy that you want to delete.

*/ inline int GetVersion() const{ return m_version; } /** *

The version number of the traffic policy that you want to delete.

*/ inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; } /** *

The version number of the traffic policy that you want to delete.

*/ inline void SetVersion(int value) { m_versionHasBeenSet = true; m_version = value; } /** *

The version number of the traffic policy that you want to delete.

*/ inline DeleteTrafficPolicyRequest& WithVersion(int value) { SetVersion(value); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; int m_version; bool m_versionHasBeenSet = false; }; } // namespace Model } // namespace Route53 } // namespace Aws