AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
RenewalSettings.h
1
6#pragma once
7#include <aws/medialive/MediaLive_EXPORTS.h>
8#include <aws/medialive/model/ReservationAutomaticRenewal.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 MediaLive
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_MEDIALIVE_API RenewalSettings() = default;
35 AWS_MEDIALIVE_API RenewalSettings(Aws::Utils::Json::JsonView jsonValue);
37 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline ReservationAutomaticRenewal GetAutomaticRenewal() const { return m_automaticRenewal; }
45 inline bool AutomaticRenewalHasBeenSet() const { return m_automaticRenewalHasBeenSet; }
46 inline void SetAutomaticRenewal(ReservationAutomaticRenewal value) { m_automaticRenewalHasBeenSet = true; m_automaticRenewal = value; }
49
51
54 inline int GetRenewalCount() const { return m_renewalCount; }
55 inline bool RenewalCountHasBeenSet() const { return m_renewalCountHasBeenSet; }
56 inline void SetRenewalCount(int value) { m_renewalCountHasBeenSet = true; m_renewalCount = value; }
57 inline RenewalSettings& WithRenewalCount(int value) { SetRenewalCount(value); return *this;}
59 private:
60
62 bool m_automaticRenewalHasBeenSet = false;
63
64 int m_renewalCount{0};
65 bool m_renewalCountHasBeenSet = false;
66 };
67
68} // namespace Model
69} // namespace MediaLive
70} // namespace Aws
RenewalSettings & WithAutomaticRenewal(ReservationAutomaticRenewal value)
AWS_MEDIALIVE_API RenewalSettings()=default
RenewalSettings & WithRenewalCount(int value)
void SetAutomaticRenewal(ReservationAutomaticRenewal value)
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MEDIALIVE_API RenewalSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIALIVE_API RenewalSettings(Aws::Utils::Json::JsonView jsonValue)
ReservationAutomaticRenewal GetAutomaticRenewal() const
Aws::Utils::Json::JsonValue JsonValue