/** * 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 Shield { namespace Model { /** */ class UpdateSubscriptionRequest : public ShieldRequest { public: AWS_SHIELD_API UpdateSubscriptionRequest(); // 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 "UpdateSubscription"; } AWS_SHIELD_API Aws::String SerializePayload() const override; AWS_SHIELD_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

When you initally create a subscription, AutoRenew is set to * ENABLED. If ENABLED, the subscription will be * automatically renewed at the end of the existing subscription period. You can * change this by submitting an UpdateSubscription request. If the * UpdateSubscription request does not included a value for * AutoRenew, the existing value for AutoRenew remains * unchanged.

*/ inline const AutoRenew& GetAutoRenew() const{ return m_autoRenew; } /** *

When you initally create a subscription, AutoRenew is set to * ENABLED. If ENABLED, the subscription will be * automatically renewed at the end of the existing subscription period. You can * change this by submitting an UpdateSubscription request. If the * UpdateSubscription request does not included a value for * AutoRenew, the existing value for AutoRenew remains * unchanged.

*/ inline bool AutoRenewHasBeenSet() const { return m_autoRenewHasBeenSet; } /** *

When you initally create a subscription, AutoRenew is set to * ENABLED. If ENABLED, the subscription will be * automatically renewed at the end of the existing subscription period. You can * change this by submitting an UpdateSubscription request. If the * UpdateSubscription request does not included a value for * AutoRenew, the existing value for AutoRenew remains * unchanged.

*/ inline void SetAutoRenew(const AutoRenew& value) { m_autoRenewHasBeenSet = true; m_autoRenew = value; } /** *

When you initally create a subscription, AutoRenew is set to * ENABLED. If ENABLED, the subscription will be * automatically renewed at the end of the existing subscription period. You can * change this by submitting an UpdateSubscription request. If the * UpdateSubscription request does not included a value for * AutoRenew, the existing value for AutoRenew remains * unchanged.

*/ inline void SetAutoRenew(AutoRenew&& value) { m_autoRenewHasBeenSet = true; m_autoRenew = std::move(value); } /** *

When you initally create a subscription, AutoRenew is set to * ENABLED. If ENABLED, the subscription will be * automatically renewed at the end of the existing subscription period. You can * change this by submitting an UpdateSubscription request. If the * UpdateSubscription request does not included a value for * AutoRenew, the existing value for AutoRenew remains * unchanged.

*/ inline UpdateSubscriptionRequest& WithAutoRenew(const AutoRenew& value) { SetAutoRenew(value); return *this;} /** *

When you initally create a subscription, AutoRenew is set to * ENABLED. If ENABLED, the subscription will be * automatically renewed at the end of the existing subscription period. You can * change this by submitting an UpdateSubscription request. If the * UpdateSubscription request does not included a value for * AutoRenew, the existing value for AutoRenew remains * unchanged.

*/ inline UpdateSubscriptionRequest& WithAutoRenew(AutoRenew&& value) { SetAutoRenew(std::move(value)); return *this;} private: AutoRenew m_autoRenew; bool m_autoRenewHasBeenSet = false; }; } // namespace Model } // namespace Shield } // namespace Aws