AWS SDK for C++  1.9.106
AWS SDK for C++
Subscription.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <aws/shield/model/Limit.h>
15 #include <utility>
16 
17 namespace Aws
18 {
19 namespace Utils
20 {
21 namespace Json
22 {
23  class JsonValue;
24  class JsonView;
25 } // namespace Json
26 } // namespace Utils
27 namespace Shield
28 {
29 namespace Model
30 {
31 
39  {
40  public:
45 
46 
52  inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
53 
59  inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
60 
66  inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
67 
73  inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
74 
80  inline Subscription& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
81 
87  inline Subscription& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
88 
89 
93  inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
94 
98  inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
99 
103  inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
104 
108  inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
109 
113  inline Subscription& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
114 
118  inline Subscription& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
119 
120 
125  inline long long GetTimeCommitmentInSeconds() const{ return m_timeCommitmentInSeconds; }
126 
131  inline bool TimeCommitmentInSecondsHasBeenSet() const { return m_timeCommitmentInSecondsHasBeenSet; }
132 
137  inline void SetTimeCommitmentInSeconds(long long value) { m_timeCommitmentInSecondsHasBeenSet = true; m_timeCommitmentInSeconds = value; }
138 
143  inline Subscription& WithTimeCommitmentInSeconds(long long value) { SetTimeCommitmentInSeconds(value); return *this;}
144 
145 
155  inline const AutoRenew& GetAutoRenew() const{ return m_autoRenew; }
156 
166  inline bool AutoRenewHasBeenSet() const { return m_autoRenewHasBeenSet; }
167 
177  inline void SetAutoRenew(const AutoRenew& value) { m_autoRenewHasBeenSet = true; m_autoRenew = value; }
178 
188  inline void SetAutoRenew(AutoRenew&& value) { m_autoRenewHasBeenSet = true; m_autoRenew = std::move(value); }
189 
199  inline Subscription& WithAutoRenew(const AutoRenew& value) { SetAutoRenew(value); return *this;}
200 
210  inline Subscription& WithAutoRenew(AutoRenew&& value) { SetAutoRenew(std::move(value)); return *this;}
211 
212 
216  inline const Aws::Vector<Limit>& GetLimits() const{ return m_limits; }
217 
221  inline bool LimitsHasBeenSet() const { return m_limitsHasBeenSet; }
222 
226  inline void SetLimits(const Aws::Vector<Limit>& value) { m_limitsHasBeenSet = true; m_limits = value; }
227 
231  inline void SetLimits(Aws::Vector<Limit>&& value) { m_limitsHasBeenSet = true; m_limits = std::move(value); }
232 
236  inline Subscription& WithLimits(const Aws::Vector<Limit>& value) { SetLimits(value); return *this;}
237 
241  inline Subscription& WithLimits(Aws::Vector<Limit>&& value) { SetLimits(std::move(value)); return *this;}
242 
246  inline Subscription& AddLimits(const Limit& value) { m_limitsHasBeenSet = true; m_limits.push_back(value); return *this; }
247 
251  inline Subscription& AddLimits(Limit&& value) { m_limitsHasBeenSet = true; m_limits.push_back(std::move(value)); return *this; }
252 
253 
263  inline const ProactiveEngagementStatus& GetProactiveEngagementStatus() const{ return m_proactiveEngagementStatus; }
264 
274  inline bool ProactiveEngagementStatusHasBeenSet() const { return m_proactiveEngagementStatusHasBeenSet; }
275 
285  inline void SetProactiveEngagementStatus(const ProactiveEngagementStatus& value) { m_proactiveEngagementStatusHasBeenSet = true; m_proactiveEngagementStatus = value; }
286 
296  inline void SetProactiveEngagementStatus(ProactiveEngagementStatus&& value) { m_proactiveEngagementStatusHasBeenSet = true; m_proactiveEngagementStatus = std::move(value); }
297 
307  inline Subscription& WithProactiveEngagementStatus(const ProactiveEngagementStatus& value) { SetProactiveEngagementStatus(value); return *this;}
308 
318  inline Subscription& WithProactiveEngagementStatus(ProactiveEngagementStatus&& value) { SetProactiveEngagementStatus(std::move(value)); return *this;}
319 
320 
324  inline const SubscriptionLimits& GetSubscriptionLimits() const{ return m_subscriptionLimits; }
325 
329  inline bool SubscriptionLimitsHasBeenSet() const { return m_subscriptionLimitsHasBeenSet; }
330 
334  inline void SetSubscriptionLimits(const SubscriptionLimits& value) { m_subscriptionLimitsHasBeenSet = true; m_subscriptionLimits = value; }
335 
339  inline void SetSubscriptionLimits(SubscriptionLimits&& value) { m_subscriptionLimitsHasBeenSet = true; m_subscriptionLimits = std::move(value); }
340 
344  inline Subscription& WithSubscriptionLimits(const SubscriptionLimits& value) { SetSubscriptionLimits(value); return *this;}
345 
349  inline Subscription& WithSubscriptionLimits(SubscriptionLimits&& value) { SetSubscriptionLimits(std::move(value)); return *this;}
350 
351 
355  inline const Aws::String& GetSubscriptionArn() const{ return m_subscriptionArn; }
356 
360  inline bool SubscriptionArnHasBeenSet() const { return m_subscriptionArnHasBeenSet; }
361 
365  inline void SetSubscriptionArn(const Aws::String& value) { m_subscriptionArnHasBeenSet = true; m_subscriptionArn = value; }
366 
370  inline void SetSubscriptionArn(Aws::String&& value) { m_subscriptionArnHasBeenSet = true; m_subscriptionArn = std::move(value); }
371 
375  inline void SetSubscriptionArn(const char* value) { m_subscriptionArnHasBeenSet = true; m_subscriptionArn.assign(value); }
376 
380  inline Subscription& WithSubscriptionArn(const Aws::String& value) { SetSubscriptionArn(value); return *this;}
381 
385  inline Subscription& WithSubscriptionArn(Aws::String&& value) { SetSubscriptionArn(std::move(value)); return *this;}
386 
390  inline Subscription& WithSubscriptionArn(const char* value) { SetSubscriptionArn(value); return *this;}
391 
392  private:
393 
394  Aws::Utils::DateTime m_startTime;
395  bool m_startTimeHasBeenSet;
396 
397  Aws::Utils::DateTime m_endTime;
398  bool m_endTimeHasBeenSet;
399 
400  long long m_timeCommitmentInSeconds;
401  bool m_timeCommitmentInSecondsHasBeenSet;
402 
403  AutoRenew m_autoRenew;
404  bool m_autoRenewHasBeenSet;
405 
406  Aws::Vector<Limit> m_limits;
407  bool m_limitsHasBeenSet;
408 
409  ProactiveEngagementStatus m_proactiveEngagementStatus;
410  bool m_proactiveEngagementStatusHasBeenSet;
411 
412  SubscriptionLimits m_subscriptionLimits;
413  bool m_subscriptionLimitsHasBeenSet;
414 
415  Aws::String m_subscriptionArn;
416  bool m_subscriptionArnHasBeenSet;
417  };
418 
419 } // namespace Model
420 } // namespace Shield
421 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Shield::Model::Subscription::WithSubscriptionArn
Subscription & WithSubscriptionArn(Aws::String &&value)
Definition: Subscription.h:385
Aws::Shield::Model::Subscription::WithEndTime
Subscription & WithEndTime(Aws::Utils::DateTime &&value)
Definition: Subscription.h:118
Aws::Shield::Model::Subscription::WithAutoRenew
Subscription & WithAutoRenew(const AutoRenew &value)
Definition: Subscription.h:199
AWS_SHIELD_API
#define AWS_SHIELD_API
Definition: Shield_EXPORTS.h:28
Aws::Shield::Model::Subscription::GetProactiveEngagementStatus
const ProactiveEngagementStatus & GetProactiveEngagementStatus() const
Definition: Subscription.h:263
Aws::Shield::Model::Subscription::GetEndTime
const Aws::Utils::DateTime & GetEndTime() const
Definition: Subscription.h:93
Aws::Shield::Model::Subscription::WithTimeCommitmentInSeconds
Subscription & WithTimeCommitmentInSeconds(long long value)
Definition: Subscription.h:143
Aws::Shield::Model::Subscription::SubscriptionLimitsHasBeenSet
bool SubscriptionLimitsHasBeenSet() const
Definition: Subscription.h:329
Aws::Shield::Model::Subscription::SetStartTime
void SetStartTime(Aws::Utils::DateTime &&value)
Definition: Subscription.h:73
Aws::Shield::Model::Subscription::SetTimeCommitmentInSeconds
void SetTimeCommitmentInSeconds(long long value)
Definition: Subscription.h:137
Aws::Shield::Model::Subscription::SetLimits
void SetLimits(Aws::Vector< Limit > &&value)
Definition: Subscription.h:231
DateTime.h
Aws::Shield::Model::Subscription::AddLimits
Subscription & AddLimits(const Limit &value)
Definition: Subscription.h:246
Aws::Shield::Model::Subscription::SetProactiveEngagementStatus
void SetProactiveEngagementStatus(ProactiveEngagementStatus &&value)
Definition: Subscription.h:296
Aws::Shield::Model::Subscription::WithEndTime
Subscription & WithEndTime(const Aws::Utils::DateTime &value)
Definition: Subscription.h:113
Aws::Shield::Model::Subscription::SetSubscriptionArn
void SetSubscriptionArn(const Aws::String &value)
Definition: Subscription.h:365
SubscriptionLimits.h
Aws::Shield::Model::Subscription::StartTimeHasBeenSet
bool StartTimeHasBeenSet() const
Definition: Subscription.h:59
Aws::Shield::Model::Subscription::Subscription
Subscription(Aws::Utils::Json::JsonView jsonValue)
Aws::Shield::Model::Subscription::ProactiveEngagementStatusHasBeenSet
bool ProactiveEngagementStatusHasBeenSet() const
Definition: Subscription.h:274
Aws::Shield::Model::Subscription::WithSubscriptionLimits
Subscription & WithSubscriptionLimits(SubscriptionLimits &&value)
Definition: Subscription.h:349
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Shield::Model::Subscription::GetSubscriptionLimits
const SubscriptionLimits & GetSubscriptionLimits() const
Definition: Subscription.h:324
Aws::Shield::Model::Subscription::WithSubscriptionArn
Subscription & WithSubscriptionArn(const Aws::String &value)
Definition: Subscription.h:380
Aws::Shield::Model::Subscription::SubscriptionArnHasBeenSet
bool SubscriptionArnHasBeenSet() const
Definition: Subscription.h:360
Aws::Shield::Model::Subscription::AddLimits
Subscription & AddLimits(Limit &&value)
Definition: Subscription.h:251
Aws::Shield::Model::Subscription::SetStartTime
void SetStartTime(const Aws::Utils::DateTime &value)
Definition: Subscription.h:66
Aws::Shield::Model::Subscription::GetStartTime
const Aws::Utils::DateTime & GetStartTime() const
Definition: Subscription.h:52
AWSVector.h
Aws::Shield::Model::Subscription::SetAutoRenew
void SetAutoRenew(const AutoRenew &value)
Definition: Subscription.h:177
Aws::Shield::Model::Subscription::SetSubscriptionLimits
void SetSubscriptionLimits(SubscriptionLimits &&value)
Definition: Subscription.h:339
Aws::Shield::Model::Subscription::SetSubscriptionArn
void SetSubscriptionArn(Aws::String &&value)
Definition: Subscription.h:370
Aws::Shield::Model::Subscription::TimeCommitmentInSecondsHasBeenSet
bool TimeCommitmentInSecondsHasBeenSet() const
Definition: Subscription.h:131
Aws::Shield::Model::Subscription::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
ProactiveEngagementStatus.h
Limit.h
Aws::Shield::Model::Subscription::SetProactiveEngagementStatus
void SetProactiveEngagementStatus(const ProactiveEngagementStatus &value)
Definition: Subscription.h:285
Aws::Shield::Model::SubscriptionLimits
Definition: SubscriptionLimits.h:33
Aws::Shield::Model::Subscription::operator=
Subscription & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Shield::Model::Subscription::SetSubscriptionLimits
void SetSubscriptionLimits(const SubscriptionLimits &value)
Definition: Subscription.h:334
Shield_EXPORTS.h
Aws::Shield::Model::ProactiveEngagementStatus
ProactiveEngagementStatus
Definition: ProactiveEngagementStatus.h:17
Aws::Shield::Model::Subscription::WithSubscriptionArn
Subscription & WithSubscriptionArn(const char *value)
Definition: Subscription.h:390
Aws::Shield::Model::Subscription::GetTimeCommitmentInSeconds
long long GetTimeCommitmentInSeconds() const
Definition: Subscription.h:125
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Shield::Model::Subscription
Definition: Subscription.h:39
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Shield::Model::Subscription::WithLimits
Subscription & WithLimits(Aws::Vector< Limit > &&value)
Definition: Subscription.h:241
Aws::Shield::Model::Limit
Definition: Limit.h:33
Aws::Shield::Model::Subscription::EndTimeHasBeenSet
bool EndTimeHasBeenSet() const
Definition: Subscription.h:98
Aws::Shield::Model::Subscription::SetEndTime
void SetEndTime(const Aws::Utils::DateTime &value)
Definition: Subscription.h:103
Aws::Shield::Model::Subscription::WithStartTime
Subscription & WithStartTime(const Aws::Utils::DateTime &value)
Definition: Subscription.h:80
Aws::Shield::Model::Subscription::WithSubscriptionLimits
Subscription & WithSubscriptionLimits(const SubscriptionLimits &value)
Definition: Subscription.h:344
Aws::Shield::Model::Subscription::GetAutoRenew
const AutoRenew & GetAutoRenew() const
Definition: Subscription.h:155
Aws
Definition: AccessManagementClient.h:15
AutoRenew.h
Aws::Shield::Model::Subscription::WithProactiveEngagementStatus
Subscription & WithProactiveEngagementStatus(ProactiveEngagementStatus &&value)
Definition: Subscription.h:318
Aws::Shield::Model::Subscription::WithLimits
Subscription & WithLimits(const Aws::Vector< Limit > &value)
Definition: Subscription.h:236
Aws::Shield::Model::Subscription::SetSubscriptionArn
void SetSubscriptionArn(const char *value)
Definition: Subscription.h:375
Aws::Shield::Model::Subscription::WithStartTime
Subscription & WithStartTime(Aws::Utils::DateTime &&value)
Definition: Subscription.h:87
Aws::Shield::Model::Subscription::GetLimits
const Aws::Vector< Limit > & GetLimits() const
Definition: Subscription.h:216
Aws::Shield::Model::Subscription::SetEndTime
void SetEndTime(Aws::Utils::DateTime &&value)
Definition: Subscription.h:108
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Shield::Model::Subscription::Subscription
Subscription()
Aws::Shield::Model::Subscription::GetSubscriptionArn
const Aws::String & GetSubscriptionArn() const
Definition: Subscription.h:355
Aws::Shield::Model::AutoRenew
AutoRenew
Definition: AutoRenew.h:17
Aws::Shield::Model::Subscription::LimitsHasBeenSet
bool LimitsHasBeenSet() const
Definition: Subscription.h:221
Aws::Shield::Model::Subscription::AutoRenewHasBeenSet
bool AutoRenewHasBeenSet() const
Definition: Subscription.h:166
Aws::Shield::Model::Subscription::SetLimits
void SetLimits(const Aws::Vector< Limit > &value)
Definition: Subscription.h:226
Aws::Shield::Model::Subscription::WithAutoRenew
Subscription & WithAutoRenew(AutoRenew &&value)
Definition: Subscription.h:210
Aws::Shield::Model::Subscription::SetAutoRenew
void SetAutoRenew(AutoRenew &&value)
Definition: Subscription.h:188
Aws::Shield::Model::Subscription::WithProactiveEngagementStatus
Subscription & WithProactiveEngagementStatus(const ProactiveEngagementStatus &value)
Definition: Subscription.h:307