AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SavingsPlanRateProperty.h
1
6#pragma once
7#include <aws/savingsplans/SavingsPlans_EXPORTS.h>
8#include <aws/savingsplans/model/SavingsPlanRatePropertyKey.h>
9#include <aws/core/utils/memory/stl/AWSString.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 SavingsPlans
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_SAVINGSPLANS_API SavingsPlanRateProperty();
36 AWS_SAVINGSPLANS_API SavingsPlanRateProperty(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SAVINGSPLANS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const SavingsPlanRatePropertyKey& GetName() const{ return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 inline void SetName(const SavingsPlanRatePropertyKey& value) { m_nameHasBeenSet = true; m_name = value; }
48 inline void SetName(SavingsPlanRatePropertyKey&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
49 inline SavingsPlanRateProperty& WithName(const SavingsPlanRatePropertyKey& value) { SetName(value); return *this;}
50 inline SavingsPlanRateProperty& WithName(SavingsPlanRatePropertyKey&& value) { SetName(std::move(value)); return *this;}
52
54
57 inline const Aws::String& GetValue() const{ return m_value; }
58 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
59 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
60 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
61 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
62 inline SavingsPlanRateProperty& WithValue(const Aws::String& value) { SetValue(value); return *this;}
63 inline SavingsPlanRateProperty& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
64 inline SavingsPlanRateProperty& WithValue(const char* value) { SetValue(value); return *this;}
66 private:
67
69 bool m_nameHasBeenSet = false;
70
71 Aws::String m_value;
72 bool m_valueHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace SavingsPlans
77} // namespace Aws
SavingsPlanRateProperty & WithName(SavingsPlanRatePropertyKey &&value)
AWS_SAVINGSPLANS_API SavingsPlanRateProperty & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetName(const SavingsPlanRatePropertyKey &value)
SavingsPlanRateProperty & WithValue(Aws::String &&value)
const SavingsPlanRatePropertyKey & GetName() const
SavingsPlanRateProperty & WithValue(const char *value)
AWS_SAVINGSPLANS_API SavingsPlanRateProperty(Aws::Utils::Json::JsonView jsonValue)
SavingsPlanRateProperty & WithName(const SavingsPlanRatePropertyKey &value)
SavingsPlanRateProperty & WithValue(const Aws::String &value)
AWS_SAVINGSPLANS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetName(SavingsPlanRatePropertyKey &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue