/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Budgets { namespace Model { /** *

Request of UpdateBudget

See Also:

AWS * API Reference

*/ class UpdateBudgetRequest : public BudgetsRequest { public: AWS_BUDGETS_API UpdateBudgetRequest(); // 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 "UpdateBudget"; } 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 that you want * to update.

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

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

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

The accountId that is associated with the budget that 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 that 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 that 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 that you want * to update.

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

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

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

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

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

The budget that you want to update your budget to.

*/ inline const Budget& GetNewBudget() const{ return m_newBudget; } /** *

The budget that you want to update your budget to.

*/ inline bool NewBudgetHasBeenSet() const { return m_newBudgetHasBeenSet; } /** *

The budget that you want to update your budget to.

*/ inline void SetNewBudget(const Budget& value) { m_newBudgetHasBeenSet = true; m_newBudget = value; } /** *

The budget that you want to update your budget to.

*/ inline void SetNewBudget(Budget&& value) { m_newBudgetHasBeenSet = true; m_newBudget = std::move(value); } /** *

The budget that you want to update your budget to.

*/ inline UpdateBudgetRequest& WithNewBudget(const Budget& value) { SetNewBudget(value); return *this;} /** *

The budget that you want to update your budget to.

*/ inline UpdateBudgetRequest& WithNewBudget(Budget&& value) { SetNewBudget(std::move(value)); return *this;} private: Aws::String m_accountId; bool m_accountIdHasBeenSet = false; Budget m_newBudget; bool m_newBudgetHasBeenSet = false; }; } // namespace Model } // namespace Budgets } // namespace Aws