AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
OutsideOption.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetization_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AppMonetization {
21namespace Model {
22
31 public:
32 AWS_APPMONETIZATION_API OutsideOption() = default;
33 AWS_APPMONETIZATION_API OutsideOption(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APPMONETIZATION_API OutsideOption& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
49 OutsideOption& WithName(NameT&& value) {
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
62 inline double GetMonthlyCost() const { return m_monthlyCost; }
63 inline bool MonthlyCostHasBeenSet() const { return m_monthlyCostHasBeenSet; }
64 inline void SetMonthlyCost(double value) {
65 m_monthlyCostHasBeenSet = true;
66 m_monthlyCost = value;
67 }
68 inline OutsideOption& WithMonthlyCost(double value) {
69 SetMonthlyCost(value);
70 return *this;
71 }
73
75
78 inline double GetQuality() const { return m_quality; }
79 inline bool QualityHasBeenSet() const { return m_qualityHasBeenSet; }
80 inline void SetQuality(double value) {
81 m_qualityHasBeenSet = true;
82 m_quality = value;
83 }
84 inline OutsideOption& WithQuality(double value) {
85 SetQuality(value);
86 return *this;
87 }
89
91
95 inline const Aws::Map<Aws::String, double>& GetFeatures() const { return m_features; }
96 inline bool FeaturesHasBeenSet() const { return m_featuresHasBeenSet; }
97 template <typename FeaturesT = Aws::Map<Aws::String, double>>
98 void SetFeatures(FeaturesT&& value) {
99 m_featuresHasBeenSet = true;
100 m_features = std::forward<FeaturesT>(value);
101 }
102 template <typename FeaturesT = Aws::Map<Aws::String, double>>
103 OutsideOption& WithFeatures(FeaturesT&& value) {
104 SetFeatures(std::forward<FeaturesT>(value));
105 return *this;
106 }
107 inline OutsideOption& AddFeatures(Aws::String key, double value) {
108 m_featuresHasBeenSet = true;
109 m_features.emplace(key, value);
110 return *this;
111 }
113 private:
114 Aws::String m_name;
115
116 double m_monthlyCost{0.0};
117
118 double m_quality{0.0};
119
121 bool m_nameHasBeenSet = false;
122 bool m_monthlyCostHasBeenSet = false;
123 bool m_qualityHasBeenSet = false;
124 bool m_featuresHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace AppMonetization
129} // namespace Aws
OutsideOption & WithQuality(double value)
const Aws::Map< Aws::String, double > & GetFeatures() const
OutsideOption & WithMonthlyCost(double value)
AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
OutsideOption & WithFeatures(FeaturesT &&value)
AWS_APPMONETIZATION_API OutsideOption & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMONETIZATION_API OutsideOption(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMONETIZATION_API OutsideOption()=default
const Aws::String & GetName() const
OutsideOption & AddFeatures(Aws::String key, double value)
OutsideOption & WithName(NameT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue