/** * 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 ServiceCatalog { namespace Model { /** */ class AssociateBudgetWithResourceRequest : public ServiceCatalogRequest { public: AWS_SERVICECATALOG_API AssociateBudgetWithResourceRequest(); // 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 "AssociateBudgetWithResource"; } AWS_SERVICECATALOG_API Aws::String SerializePayload() const override; AWS_SERVICECATALOG_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the budget you want to associate.

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

The name of the budget you want to associate.

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

The name of the budget you want to associate.

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

The name of the budget you want to associate.

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

The name of the budget you want to associate.

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

The name of the budget you want to associate.

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

The name of the budget you want to associate.

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

The name of the budget you want to associate.

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

The resource identifier. Either a portfolio-id or a product-id.

*/ inline const Aws::String& GetResourceId() const{ return m_resourceId; } /** *

The resource identifier. Either a portfolio-id or a product-id.

*/ inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; } /** *

The resource identifier. Either a portfolio-id or a product-id.

*/ inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; } /** *

The resource identifier. Either a portfolio-id or a product-id.

*/ inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); } /** *

The resource identifier. Either a portfolio-id or a product-id.

*/ inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); } /** *

The resource identifier. Either a portfolio-id or a product-id.

*/ inline AssociateBudgetWithResourceRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;} /** *

The resource identifier. Either a portfolio-id or a product-id.

*/ inline AssociateBudgetWithResourceRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;} /** *

The resource identifier. Either a portfolio-id or a product-id.

*/ inline AssociateBudgetWithResourceRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;} private: Aws::String m_budgetName; bool m_budgetNameHasBeenSet = false; Aws::String m_resourceId; bool m_resourceIdHasBeenSet = false; }; } // namespace Model } // namespace ServiceCatalog } // namespace Aws