AWS SDK for C++

AWS SDK for C++ Version 1.11.867

Loading...
Searching...
No Matches
FreeTrialStatus.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/securityhub/SecurityHub_EXPORTS.h>
9#include <aws/securityhub/model/FreeTrialStatusValue.h>
10#include <aws/securityhub/model/FreeTrialType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SecurityHub {
22namespace Model {
23
31 public:
32 AWS_SECURITYHUB_API FreeTrialStatus() = default;
33 AWS_SECURITYHUB_API FreeTrialStatus(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SECURITYHUB_API FreeTrialStatus& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
44 inline FreeTrialType GetFeatureType() const { return m_featureType; }
45 inline bool FeatureTypeHasBeenSet() const { return m_featureTypeHasBeenSet; }
46 inline void SetFeatureType(FreeTrialType value) {
47 m_featureTypeHasBeenSet = true;
48 m_featureType = value;
49 }
51 SetFeatureType(value);
52 return *this;
53 }
55
57
65 inline FreeTrialStatusValue GetStatus() const { return m_status; }
66 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
67 inline void SetStatus(FreeTrialStatusValue value) {
68 m_statusHasBeenSet = true;
69 m_status = value;
70 }
72 SetStatus(value);
73 return *this;
74 }
76
78
81 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
82 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
83 template <typename StartedAtT = Aws::Utils::DateTime>
84 void SetStartedAt(StartedAtT&& value) {
85 m_startedAtHasBeenSet = true;
86 m_startedAt = std::forward<StartedAtT>(value);
87 }
88 template <typename StartedAtT = Aws::Utils::DateTime>
89 FreeTrialStatus& WithStartedAt(StartedAtT&& value) {
90 SetStartedAt(std::forward<StartedAtT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::Utils::DateTime& GetExpiresAt() const { return m_expiresAt; }
100 inline bool ExpiresAtHasBeenSet() const { return m_expiresAtHasBeenSet; }
101 template <typename ExpiresAtT = Aws::Utils::DateTime>
102 void SetExpiresAt(ExpiresAtT&& value) {
103 m_expiresAtHasBeenSet = true;
104 m_expiresAt = std::forward<ExpiresAtT>(value);
105 }
106 template <typename ExpiresAtT = Aws::Utils::DateTime>
107 FreeTrialStatus& WithExpiresAt(ExpiresAtT&& value) {
108 SetExpiresAt(std::forward<ExpiresAtT>(value));
109 return *this;
110 }
112 private:
114
116
117 Aws::Utils::DateTime m_startedAt{};
118
119 Aws::Utils::DateTime m_expiresAt{};
120 bool m_featureTypeHasBeenSet = false;
121 bool m_statusHasBeenSet = false;
122 bool m_startedAtHasBeenSet = false;
123 bool m_expiresAtHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace SecurityHub
128} // namespace Aws
void SetStatus(FreeTrialStatusValue value)
FreeTrialStatus & WithStartedAt(StartedAtT &&value)
FreeTrialStatus & WithFeatureType(FreeTrialType value)
AWS_SECURITYHUB_API FreeTrialStatus()=default
AWS_SECURITYHUB_API FreeTrialStatus(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetExpiresAt() const
FreeTrialStatusValue GetStatus() const
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
FreeTrialStatus & WithStatus(FreeTrialStatusValue value)
const Aws::Utils::DateTime & GetStartedAt() const
AWS_SECURITYHUB_API FreeTrialStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetFeatureType(FreeTrialType value)
FreeTrialStatus & WithExpiresAt(ExpiresAtT &&value)
Aws::Utils::Json::JsonValue JsonValue