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

Request of UpdateSubscriber

See Also:

AWS * API Reference

*/ class UpdateSubscriberRequest : public BudgetsRequest { public: AWS_BUDGETS_API UpdateSubscriberRequest(); // 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 "UpdateSubscriber"; } AWS_BUDGETS_API Aws::String SerializePayload() const override; AWS_BUDGETS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The accountId that is associated with the budget whose * subscriber you want to update.

*/ inline const Aws::String& GetAccountId() const{ return m_accountId; } /** *

The accountId that is associated with the budget whose * subscriber you want to update.

*/ inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } /** *

The accountId that is associated with the budget whose * subscriber you want to update.

*/ inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; } /** *

The accountId that is associated with the budget whose * subscriber you want to update.

*/ inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); } /** *

The accountId that is associated with the budget whose * subscriber you want to update.

*/ inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); } /** *

The accountId that is associated with the budget whose * subscriber you want to update.

*/ inline UpdateSubscriberRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;} /** *

The accountId that is associated with the budget whose * subscriber you want to update.

*/ inline UpdateSubscriberRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;} /** *

The accountId that is associated with the budget whose * subscriber you want to update.

*/ inline UpdateSubscriberRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;} /** *

The name of the budget whose subscriber you want to update.

*/ inline const Aws::String& GetBudgetName() const{ return m_budgetName; } /** *

The name of the budget whose subscriber you want to update.

*/ inline bool BudgetNameHasBeenSet() const { return m_budgetNameHasBeenSet; } /** *

The name of the budget whose subscriber you want to update.

*/ inline void SetBudgetName(const Aws::String& value) { m_budgetNameHasBeenSet = true; m_budgetName = value; } /** *

The name of the budget whose subscriber you want to update.

*/ inline void SetBudgetName(Aws::String&& value) { m_budgetNameHasBeenSet = true; m_budgetName = std::move(value); } /** *

The name of the budget whose subscriber you want to update.

*/ inline void SetBudgetName(const char* value) { m_budgetNameHasBeenSet = true; m_budgetName.assign(value); } /** *

The name of the budget whose subscriber you want to update.

*/ inline UpdateSubscriberRequest& WithBudgetName(const Aws::String& value) { SetBudgetName(value); return *this;} /** *

The name of the budget whose subscriber you want to update.

*/ inline UpdateSubscriberRequest& WithBudgetName(Aws::String&& value) { SetBudgetName(std::move(value)); return *this;} /** *

The name of the budget whose subscriber you want to update.

*/ inline UpdateSubscriberRequest& WithBudgetName(const char* value) { SetBudgetName(value); return *this;} /** *

The notification whose subscriber you want to update.

*/ inline const Notification& GetNotification() const{ return m_notification; } /** *

The notification whose subscriber you want to update.

*/ inline bool NotificationHasBeenSet() const { return m_notificationHasBeenSet; } /** *

The notification whose subscriber you want to update.

*/ inline void SetNotification(const Notification& value) { m_notificationHasBeenSet = true; m_notification = value; } /** *

The notification whose subscriber you want to update.

*/ inline void SetNotification(Notification&& value) { m_notificationHasBeenSet = true; m_notification = std::move(value); } /** *

The notification whose subscriber you want to update.

*/ inline UpdateSubscriberRequest& WithNotification(const Notification& value) { SetNotification(value); return *this;} /** *

The notification whose subscriber you want to update.

*/ inline UpdateSubscriberRequest& WithNotification(Notification&& value) { SetNotification(std::move(value)); return *this;} /** *

The previous subscriber that is associated with a budget notification.

*/ inline const Subscriber& GetOldSubscriber() const{ return m_oldSubscriber; } /** *

The previous subscriber that is associated with a budget notification.

*/ inline bool OldSubscriberHasBeenSet() const { return m_oldSubscriberHasBeenSet; } /** *

The previous subscriber that is associated with a budget notification.

*/ inline void SetOldSubscriber(const Subscriber& value) { m_oldSubscriberHasBeenSet = true; m_oldSubscriber = value; } /** *

The previous subscriber that is associated with a budget notification.

*/ inline void SetOldSubscriber(Subscriber&& value) { m_oldSubscriberHasBeenSet = true; m_oldSubscriber = std::move(value); } /** *

The previous subscriber that is associated with a budget notification.

*/ inline UpdateSubscriberRequest& WithOldSubscriber(const Subscriber& value) { SetOldSubscriber(value); return *this;} /** *

The previous subscriber that is associated with a budget notification.

*/ inline UpdateSubscriberRequest& WithOldSubscriber(Subscriber&& value) { SetOldSubscriber(std::move(value)); return *this;} /** *

The updated subscriber that is associated with a budget notification.

*/ inline const Subscriber& GetNewSubscriber() const{ return m_newSubscriber; } /** *

The updated subscriber that is associated with a budget notification.

*/ inline bool NewSubscriberHasBeenSet() const { return m_newSubscriberHasBeenSet; } /** *

The updated subscriber that is associated with a budget notification.

*/ inline void SetNewSubscriber(const Subscriber& value) { m_newSubscriberHasBeenSet = true; m_newSubscriber = value; } /** *

The updated subscriber that is associated with a budget notification.

*/ inline void SetNewSubscriber(Subscriber&& value) { m_newSubscriberHasBeenSet = true; m_newSubscriber = std::move(value); } /** *

The updated subscriber that is associated with a budget notification.

*/ inline UpdateSubscriberRequest& WithNewSubscriber(const Subscriber& value) { SetNewSubscriber(value); return *this;} /** *

The updated subscriber that is associated with a budget notification.

*/ inline UpdateSubscriberRequest& WithNewSubscriber(Subscriber&& value) { SetNewSubscriber(std::move(value)); return *this;} private: Aws::String m_accountId; bool m_accountIdHasBeenSet = false; Aws::String m_budgetName; bool m_budgetNameHasBeenSet = false; Notification m_notification; bool m_notificationHasBeenSet = false; Subscriber m_oldSubscriber; bool m_oldSubscriberHasBeenSet = false; Subscriber m_newSubscriber; bool m_newSubscriberHasBeenSet = false; }; } // namespace Model } // namespace Budgets } // namespace Aws