AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UsageMetricBasis.h
1
6#pragma once
7#include <aws/discovery/ApplicationDiscoveryService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ApplicationDiscoveryService
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_APPLICATIONDISCOVERYSERVICE_API UsageMetricBasis() = default;
36 AWS_APPLICATIONDISCOVERYSERVICE_API UsageMetricBasis(Aws::Utils::Json::JsonView jsonValue);
37 AWS_APPLICATIONDISCOVERYSERVICE_API UsageMetricBasis& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_APPLICATIONDISCOVERYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetName() const { return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 template<typename NameT = Aws::String>
48 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
49 template<typename NameT = Aws::String>
50 UsageMetricBasis& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
52
54
58 inline double GetPercentageAdjust() const { return m_percentageAdjust; }
59 inline bool PercentageAdjustHasBeenSet() const { return m_percentageAdjustHasBeenSet; }
60 inline void SetPercentageAdjust(double value) { m_percentageAdjustHasBeenSet = true; m_percentageAdjust = value; }
61 inline UsageMetricBasis& WithPercentageAdjust(double value) { SetPercentageAdjust(value); return *this;}
63 private:
64
65 Aws::String m_name;
66 bool m_nameHasBeenSet = false;
67
68 double m_percentageAdjust{0.0};
69 bool m_percentageAdjustHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace ApplicationDiscoveryService
74} // namespace Aws
AWS_APPLICATIONDISCOVERYSERVICE_API UsageMetricBasis()=default
AWS_APPLICATIONDISCOVERYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPLICATIONDISCOVERYSERVICE_API UsageMetricBasis & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPLICATIONDISCOVERYSERVICE_API UsageMetricBasis(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue