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

Request of CreateBudget

See Also:

AWS * API Reference

*/ class CreateBudgetRequest : public BudgetsRequest { public: AWS_BUDGETS_API CreateBudgetRequest(); // 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 "CreateBudget"; } 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.

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

The accountId that is associated with the budget.

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

The accountId that is associated with the budget.

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

The accountId that is associated with the budget.

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

The accountId that is associated with the budget.

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

The accountId that is associated with the budget.

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

The accountId that is associated with the budget.

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

The accountId that is associated with the budget.

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

The budget object that you want to create.

*/ inline const Budget& GetBudget() const{ return m_budget; } /** *

The budget object that you want to create.

*/ inline bool BudgetHasBeenSet() const { return m_budgetHasBeenSet; } /** *

The budget object that you want to create.

*/ inline void SetBudget(const Budget& value) { m_budgetHasBeenSet = true; m_budget = value; } /** *

The budget object that you want to create.

*/ inline void SetBudget(Budget&& value) { m_budgetHasBeenSet = true; m_budget = std::move(value); } /** *

The budget object that you want to create.

*/ inline CreateBudgetRequest& WithBudget(const Budget& value) { SetBudget(value); return *this;} /** *

The budget object that you want to create.

*/ inline CreateBudgetRequest& WithBudget(Budget&& value) { SetBudget(std::move(value)); return *this;} /** *

A notification that you want to associate with a budget. A budget can have up * to five notifications, and each notification can have one SNS subscriber and up * to 10 email subscribers. If you include notifications and subscribers in your * CreateBudget call, Amazon Web Services creates the notifications * and subscribers for you.

*/ inline const Aws::Vector& GetNotificationsWithSubscribers() const{ return m_notificationsWithSubscribers; } /** *

A notification that you want to associate with a budget. A budget can have up * to five notifications, and each notification can have one SNS subscriber and up * to 10 email subscribers. If you include notifications and subscribers in your * CreateBudget call, Amazon Web Services creates the notifications * and subscribers for you.

*/ inline bool NotificationsWithSubscribersHasBeenSet() const { return m_notificationsWithSubscribersHasBeenSet; } /** *

A notification that you want to associate with a budget. A budget can have up * to five notifications, and each notification can have one SNS subscriber and up * to 10 email subscribers. If you include notifications and subscribers in your * CreateBudget call, Amazon Web Services creates the notifications * and subscribers for you.

*/ inline void SetNotificationsWithSubscribers(const Aws::Vector& value) { m_notificationsWithSubscribersHasBeenSet = true; m_notificationsWithSubscribers = value; } /** *

A notification that you want to associate with a budget. A budget can have up * to five notifications, and each notification can have one SNS subscriber and up * to 10 email subscribers. If you include notifications and subscribers in your * CreateBudget call, Amazon Web Services creates the notifications * and subscribers for you.

*/ inline void SetNotificationsWithSubscribers(Aws::Vector&& value) { m_notificationsWithSubscribersHasBeenSet = true; m_notificationsWithSubscribers = std::move(value); } /** *

A notification that you want to associate with a budget. A budget can have up * to five notifications, and each notification can have one SNS subscriber and up * to 10 email subscribers. If you include notifications and subscribers in your * CreateBudget call, Amazon Web Services creates the notifications * and subscribers for you.

*/ inline CreateBudgetRequest& WithNotificationsWithSubscribers(const Aws::Vector& value) { SetNotificationsWithSubscribers(value); return *this;} /** *

A notification that you want to associate with a budget. A budget can have up * to five notifications, and each notification can have one SNS subscriber and up * to 10 email subscribers. If you include notifications and subscribers in your * CreateBudget call, Amazon Web Services creates the notifications * and subscribers for you.

*/ inline CreateBudgetRequest& WithNotificationsWithSubscribers(Aws::Vector&& value) { SetNotificationsWithSubscribers(std::move(value)); return *this;} /** *

A notification that you want to associate with a budget. A budget can have up * to five notifications, and each notification can have one SNS subscriber and up * to 10 email subscribers. If you include notifications and subscribers in your * CreateBudget call, Amazon Web Services creates the notifications * and subscribers for you.

*/ inline CreateBudgetRequest& AddNotificationsWithSubscribers(const NotificationWithSubscribers& value) { m_notificationsWithSubscribersHasBeenSet = true; m_notificationsWithSubscribers.push_back(value); return *this; } /** *

A notification that you want to associate with a budget. A budget can have up * to five notifications, and each notification can have one SNS subscriber and up * to 10 email subscribers. If you include notifications and subscribers in your * CreateBudget call, Amazon Web Services creates the notifications * and subscribers for you.

*/ inline CreateBudgetRequest& AddNotificationsWithSubscribers(NotificationWithSubscribers&& value) { m_notificationsWithSubscribersHasBeenSet = true; m_notificationsWithSubscribers.push_back(std::move(value)); return *this; } private: Aws::String m_accountId; bool m_accountIdHasBeenSet = false; Budget m_budget; bool m_budgetHasBeenSet = false; Aws::Vector m_notificationsWithSubscribers; bool m_notificationsWithSubscribersHasBeenSet = false; }; } // namespace Model } // namespace Budgets } // namespace Aws