/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Lightsail { namespace Model { /** *

Describes the estimated cost or usage that a budget tracks.

See * Also:

AWS * API Reference

*/ class ResourceBudgetEstimate { public: AWS_LIGHTSAIL_API ResourceBudgetEstimate(); AWS_LIGHTSAIL_API ResourceBudgetEstimate(Aws::Utils::Json::JsonView jsonValue); AWS_LIGHTSAIL_API ResourceBudgetEstimate& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The resource name.

*/ inline const Aws::String& GetResourceName() const{ return m_resourceName; } /** *

The resource name.

*/ inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; } /** *

The resource name.

*/ inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; } /** *

The resource name.

*/ inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); } /** *

The resource name.

*/ inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); } /** *

The resource name.

*/ inline ResourceBudgetEstimate& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;} /** *

The resource name.

*/ inline ResourceBudgetEstimate& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;} /** *

The resource name.

*/ inline ResourceBudgetEstimate& WithResourceName(const char* value) { SetResourceName(value); return *this;} /** *

The type of resource the budget will track.

*/ inline const ResourceType& GetResourceType() const{ return m_resourceType; } /** *

The type of resource the budget will track.

*/ inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } /** *

The type of resource the budget will track.

*/ inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } /** *

The type of resource the budget will track.

*/ inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } /** *

The type of resource the budget will track.

*/ inline ResourceBudgetEstimate& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;} /** *

The type of resource the budget will track.

*/ inline ResourceBudgetEstimate& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;} /** *

The cost estimate for the specified budget.

*/ inline const Aws::Vector& GetCostEstimates() const{ return m_costEstimates; } /** *

The cost estimate for the specified budget.

*/ inline bool CostEstimatesHasBeenSet() const { return m_costEstimatesHasBeenSet; } /** *

The cost estimate for the specified budget.

*/ inline void SetCostEstimates(const Aws::Vector& value) { m_costEstimatesHasBeenSet = true; m_costEstimates = value; } /** *

The cost estimate for the specified budget.

*/ inline void SetCostEstimates(Aws::Vector&& value) { m_costEstimatesHasBeenSet = true; m_costEstimates = std::move(value); } /** *

The cost estimate for the specified budget.

*/ inline ResourceBudgetEstimate& WithCostEstimates(const Aws::Vector& value) { SetCostEstimates(value); return *this;} /** *

The cost estimate for the specified budget.

*/ inline ResourceBudgetEstimate& WithCostEstimates(Aws::Vector&& value) { SetCostEstimates(std::move(value)); return *this;} /** *

The cost estimate for the specified budget.

*/ inline ResourceBudgetEstimate& AddCostEstimates(const CostEstimate& value) { m_costEstimatesHasBeenSet = true; m_costEstimates.push_back(value); return *this; } /** *

The cost estimate for the specified budget.

*/ inline ResourceBudgetEstimate& AddCostEstimates(CostEstimate&& value) { m_costEstimatesHasBeenSet = true; m_costEstimates.push_back(std::move(value)); return *this; } /** *

The estimate start time.

*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** *

The estimate start time.

*/ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *

The estimate start time.

*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** *

The estimate start time.

*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } /** *

The estimate start time.

*/ inline ResourceBudgetEstimate& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *

The estimate start time.

*/ inline ResourceBudgetEstimate& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} /** *

The estimate end time.

*/ inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } /** *

The estimate end time.

*/ inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } /** *

The estimate end time.

*/ inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; } /** *

The estimate end time.

*/ inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } /** *

The estimate end time.

*/ inline ResourceBudgetEstimate& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} /** *

The estimate end time.

*/ inline ResourceBudgetEstimate& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} private: Aws::String m_resourceName; bool m_resourceNameHasBeenSet = false; ResourceType m_resourceType; bool m_resourceTypeHasBeenSet = false; Aws::Vector m_costEstimates; bool m_costEstimatesHasBeenSet = false; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet = false; Aws::Utils::DateTime m_endTime; bool m_endTimeHasBeenSet = false; }; } // namespace Model } // namespace Lightsail } // namespace Aws