AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EcsService.h
1
6#pragma once
7#include <aws/cost-optimization-hub/CostOptimizationHub_EXPORTS.h>
8#include <aws/cost-optimization-hub/model/EcsServiceConfiguration.h>
9#include <aws/cost-optimization-hub/model/ResourceCostCalculation.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CostOptimizationHub
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_COSTOPTIMIZATIONHUB_API EcsService();
36 AWS_COSTOPTIMIZATIONHUB_API EcsService(Aws::Utils::Json::JsonView jsonValue);
37 AWS_COSTOPTIMIZATIONHUB_API EcsService& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const EcsServiceConfiguration& GetConfiguration() const{ return m_configuration; }
46 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
47 inline void SetConfiguration(const EcsServiceConfiguration& value) { m_configurationHasBeenSet = true; m_configuration = value; }
48 inline void SetConfiguration(EcsServiceConfiguration&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); }
49 inline EcsService& WithConfiguration(const EcsServiceConfiguration& value) { SetConfiguration(value); return *this;}
50 inline EcsService& WithConfiguration(EcsServiceConfiguration&& value) { SetConfiguration(std::move(value)); return *this;}
52
54
57 inline const ResourceCostCalculation& GetCostCalculation() const{ return m_costCalculation; }
58 inline bool CostCalculationHasBeenSet() const { return m_costCalculationHasBeenSet; }
59 inline void SetCostCalculation(const ResourceCostCalculation& value) { m_costCalculationHasBeenSet = true; m_costCalculation = value; }
60 inline void SetCostCalculation(ResourceCostCalculation&& value) { m_costCalculationHasBeenSet = true; m_costCalculation = std::move(value); }
61 inline EcsService& WithCostCalculation(const ResourceCostCalculation& value) { SetCostCalculation(value); return *this;}
62 inline EcsService& WithCostCalculation(ResourceCostCalculation&& value) { SetCostCalculation(std::move(value)); return *this;}
64 private:
65
66 EcsServiceConfiguration m_configuration;
67 bool m_configurationHasBeenSet = false;
68
69 ResourceCostCalculation m_costCalculation;
70 bool m_costCalculationHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace CostOptimizationHub
75} // namespace Aws
void SetCostCalculation(ResourceCostCalculation &&value)
Definition EcsService.h:60
const EcsServiceConfiguration & GetConfiguration() const
Definition EcsService.h:45
AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const
EcsService & WithCostCalculation(const ResourceCostCalculation &value)
Definition EcsService.h:61
EcsService & WithConfiguration(const EcsServiceConfiguration &value)
Definition EcsService.h:49
EcsService & WithCostCalculation(ResourceCostCalculation &&value)
Definition EcsService.h:62
EcsService & WithConfiguration(EcsServiceConfiguration &&value)
Definition EcsService.h:50
void SetConfiguration(EcsServiceConfiguration &&value)
Definition EcsService.h:48
void SetConfiguration(const EcsServiceConfiguration &value)
Definition EcsService.h:47
void SetCostCalculation(const ResourceCostCalculation &value)
Definition EcsService.h:59
AWS_COSTOPTIMIZATIONHUB_API EcsService()
AWS_COSTOPTIMIZATIONHUB_API EcsService & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COSTOPTIMIZATIONHUB_API EcsService(Aws::Utils::Json::JsonView jsonValue)
const ResourceCostCalculation & GetCostCalculation() const
Definition EcsService.h:57
Aws::Utils::Json::JsonValue JsonValue