AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const ReservationAutomaticRenewal& GetAutomaticRenewal() const{ return m_automaticRenewal; }
45 inline bool AutomaticRenewalHasBeenSet() const { return m_automaticRenewalHasBeenSet; }
46 inline void SetAutomaticRenewal(const ReservationAutomaticRenewal& value) { m_automaticRenewalHasBeenSet = true; m_automaticRenewal = value; }
47 inline void SetAutomaticRenewal(ReservationAutomaticRenewal&& value) { m_automaticRenewalHasBeenSet = true; m_automaticRenewal = std::move(value); }
49 inline RenewalSettings& WithAutomaticRenewal(ReservationAutomaticRenewal&& value) { SetAutomaticRenewal(std::move(value)); return *this;}
51
53
56 inline int GetRenewalCount() const{ return m_renewalCount; }
57 inline bool RenewalCountHasBeenSet() const { return m_renewalCountHasBeenSet; }
58 inline void SetRenewalCount(int value) { m_renewalCountHasBeenSet = true; m_renewalCount = value; }
59 inline RenewalSettings& WithRenewalCount(int value) { SetRenewalCount(value); return *this;}
61 private:
62
63 ReservationAutomaticRenewal m_automaticRenewal;
64 bool m_automaticRenewalHasBeenSet = false;
65
66 int m_renewalCount;
67 bool m_renewalCountHasBeenSet = false;
68 };
69
70} // namespace Model
71} // namespace MediaLive
72} // namespace Aws
RenewalSettings & WithRenewalCount(int value)
void SetAutomaticRenewal(const ReservationAutomaticRenewal &value)
void SetAutomaticRenewal(ReservationAutomaticRenewal &&value)
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
RenewalSettings & WithAutomaticRenewal(ReservationAutomaticRenewal &&value)
const ReservationAutomaticRenewal & GetAutomaticRenewal() const
RenewalSettings & WithAutomaticRenewal(const ReservationAutomaticRenewal &value)
AWS_MEDIALIVE_API RenewalSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIALIVE_API RenewalSettings(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue