AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
InventoryExpiryNotification.h
1
6#pragma once
7#include <aws/acm/ACM_EXPORTS.h>
8#include <aws/acm/model/InventoryNotificationChannel.h>
9#include <aws/acm/model/InventoryNotificationFrequency.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ACM {
22namespace Model {
23
39 public:
40 AWS_ACM_API InventoryExpiryNotification() = default;
44
46
50 inline bool GetEnabled() const { return m_enabled; }
51 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
52 inline void SetEnabled(bool value) {
53 m_enabledHasBeenSet = true;
54 m_enabled = value;
55 }
57 SetEnabled(value);
58 return *this;
59 }
61
63
66 inline InventoryNotificationChannel GetChannel() const { return m_channel; }
67 inline bool ChannelHasBeenSet() const { return m_channelHasBeenSet; }
69 m_channelHasBeenSet = true;
70 m_channel = value;
71 }
73 SetChannel(value);
74 return *this;
75 }
77
79
82 inline const Aws::String& GetTopicArn() const { return m_topicArn; }
83 inline bool TopicArnHasBeenSet() const { return m_topicArnHasBeenSet; }
84 template <typename TopicArnT = Aws::String>
85 void SetTopicArn(TopicArnT&& value) {
86 m_topicArnHasBeenSet = true;
87 m_topicArn = std::forward<TopicArnT>(value);
88 }
89 template <typename TopicArnT = Aws::String>
91 SetTopicArn(std::forward<TopicArnT>(value));
92 return *this;
93 }
95
97
101 inline int GetLeadTimeDays() const { return m_leadTimeDays; }
102 inline bool LeadTimeDaysHasBeenSet() const { return m_leadTimeDaysHasBeenSet; }
103 inline void SetLeadTimeDays(int value) {
104 m_leadTimeDaysHasBeenSet = true;
105 m_leadTimeDays = value;
106 }
108 SetLeadTimeDays(value);
109 return *this;
110 }
112
114
118 inline InventoryNotificationFrequency GetFrequency() const { return m_frequency; }
119 inline bool FrequencyHasBeenSet() const { return m_frequencyHasBeenSet; }
121 m_frequencyHasBeenSet = true;
122 m_frequency = value;
123 }
125 SetFrequency(value);
126 return *this;
127 }
129 private:
130 bool m_enabled{false};
131
133
134 Aws::String m_topicArn;
135
136 int m_leadTimeDays{0};
137
139 bool m_enabledHasBeenSet = false;
140 bool m_channelHasBeenSet = false;
141 bool m_topicArnHasBeenSet = false;
142 bool m_leadTimeDaysHasBeenSet = false;
143 bool m_frequencyHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace ACM
148} // namespace Aws
InventoryExpiryNotification & WithChannel(InventoryNotificationChannel value)
AWS_ACM_API InventoryExpiryNotification(Aws::Utils::Json::JsonView jsonValue)
InventoryExpiryNotification & WithFrequency(InventoryNotificationFrequency value)
InventoryNotificationFrequency GetFrequency() const
InventoryExpiryNotification & WithTopicArn(TopicArnT &&value)
InventoryExpiryNotification & WithEnabled(bool value)
AWS_ACM_API InventoryExpiryNotification()=default
InventoryExpiryNotification & WithLeadTimeDays(int value)
AWS_ACM_API Aws::Utils::Json::JsonValue Jsonize() const
void SetChannel(InventoryNotificationChannel value)
AWS_ACM_API InventoryExpiryNotification & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetFrequency(InventoryNotificationFrequency value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue