AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
PendingChange.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetization_EXPORTS.h>
8#include <aws/core/utils/DateTime.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
30 public:
31 AWS_APPMONETIZATION_API PendingChange() = default;
32 AWS_APPMONETIZATION_API PendingChange(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APPMONETIZATION_API PendingChange& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetPlanId() const { return m_planId; }
41 inline bool PlanIdHasBeenSet() const { return m_planIdHasBeenSet; }
42 template <typename PlanIdT = Aws::String>
43 void SetPlanId(PlanIdT&& value) {
44 m_planIdHasBeenSet = true;
45 m_planId = std::forward<PlanIdT>(value);
46 }
47 template <typename PlanIdT = Aws::String>
48 PendingChange& WithPlanId(PlanIdT&& value) {
49 SetPlanId(std::forward<PlanIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetPlanName() const { return m_planName; }
59 inline bool PlanNameHasBeenSet() const { return m_planNameHasBeenSet; }
60 template <typename PlanNameT = Aws::String>
61 void SetPlanName(PlanNameT&& value) {
62 m_planNameHasBeenSet = true;
63 m_planName = std::forward<PlanNameT>(value);
64 }
65 template <typename PlanNameT = Aws::String>
66 PendingChange& WithPlanName(PlanNameT&& value) {
67 SetPlanName(std::forward<PlanNameT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::Utils::DateTime& GetEffectiveAt() const { return m_effectiveAt; }
78 inline bool EffectiveAtHasBeenSet() const { return m_effectiveAtHasBeenSet; }
79 template <typename EffectiveAtT = Aws::Utils::DateTime>
80 void SetEffectiveAt(EffectiveAtT&& value) {
81 m_effectiveAtHasBeenSet = true;
82 m_effectiveAt = std::forward<EffectiveAtT>(value);
83 }
84 template <typename EffectiveAtT = Aws::Utils::DateTime>
85 PendingChange& WithEffectiveAt(EffectiveAtT&& value) {
86 SetEffectiveAt(std::forward<EffectiveAtT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_planId;
92
93 Aws::String m_planName;
94
95 Aws::Utils::DateTime m_effectiveAt{};
96 bool m_planIdHasBeenSet = false;
97 bool m_planNameHasBeenSet = false;
98 bool m_effectiveAtHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace AppMonetization
103} // namespace Aws
const Aws::String & GetPlanName() const
AWS_APPMONETIZATION_API PendingChange & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetPlanId() const
AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEffectiveAt(EffectiveAtT &&value)
PendingChange & WithPlanId(PlanIdT &&value)
AWS_APPMONETIZATION_API PendingChange(Aws::Utils::Json::JsonView jsonValue)
PendingChange & WithPlanName(PlanNameT &&value)
PendingChange & WithEffectiveAt(EffectiveAtT &&value)
const Aws::Utils::DateTime & GetEffectiveAt() const
AWS_APPMONETIZATION_API PendingChange()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue