AWS SDK for C++

AWS SDK for C++ Version 1.11.752

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CostOptimizationHub {
21namespace Model {
22
29 public:
30 AWS_COSTOPTIMIZATIONHUB_API EcsService() = default;
31 AWS_COSTOPTIMIZATIONHUB_API EcsService(Aws::Utils::Json::JsonView jsonValue);
32 AWS_COSTOPTIMIZATIONHUB_API EcsService& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const EcsServiceConfiguration& GetConfiguration() const { return m_configuration; }
40 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
41 template <typename ConfigurationT = EcsServiceConfiguration>
42 void SetConfiguration(ConfigurationT&& value) {
43 m_configurationHasBeenSet = true;
44 m_configuration = std::forward<ConfigurationT>(value);
45 }
46 template <typename ConfigurationT = EcsServiceConfiguration>
47 EcsService& WithConfiguration(ConfigurationT&& value) {
48 SetConfiguration(std::forward<ConfigurationT>(value));
49 return *this;
50 }
52
54
57 inline const ResourceCostCalculation& GetCostCalculation() const { return m_costCalculation; }
58 inline bool CostCalculationHasBeenSet() const { return m_costCalculationHasBeenSet; }
59 template <typename CostCalculationT = ResourceCostCalculation>
60 void SetCostCalculation(CostCalculationT&& value) {
61 m_costCalculationHasBeenSet = true;
62 m_costCalculation = std::forward<CostCalculationT>(value);
63 }
64 template <typename CostCalculationT = ResourceCostCalculation>
65 EcsService& WithCostCalculation(CostCalculationT&& value) {
66 SetCostCalculation(std::forward<CostCalculationT>(value));
67 return *this;
68 }
70 private:
71 EcsServiceConfiguration m_configuration;
72
73 ResourceCostCalculation m_costCalculation;
74 bool m_configurationHasBeenSet = false;
75 bool m_costCalculationHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace CostOptimizationHub
80} // namespace Aws
const EcsServiceConfiguration & GetConfiguration() const
Definition EcsService.h:39
void SetConfiguration(ConfigurationT &&value)
Definition EcsService.h:42
AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const
EcsService & WithCostCalculation(CostCalculationT &&value)
Definition EcsService.h:65
AWS_COSTOPTIMIZATIONHUB_API EcsService()=default
EcsService & WithConfiguration(ConfigurationT &&value)
Definition EcsService.h:47
void SetCostCalculation(CostCalculationT &&value)
Definition EcsService.h:60
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