AWS SDK for C++

AWS SDK for C++ Version 1.11.891

Loading...
Searching...
No Matches
PartnerInfo.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/lightsail/Lightsail_EXPORTS.h>
9#include <aws/lightsail/model/PartnerStatus.h>
10#include <aws/lightsail/model/TierName.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Lightsail {
22namespace Model {
23
31 public:
32 AWS_LIGHTSAIL_API PartnerInfo() = default;
33 AWS_LIGHTSAIL_API PartnerInfo(Aws::Utils::Json::JsonView jsonValue);
34 AWS_LIGHTSAIL_API PartnerInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::Utils::DateTime& GetEnrolledAt() const { return m_enrolledAt; }
43 inline bool EnrolledAtHasBeenSet() const { return m_enrolledAtHasBeenSet; }
44 template <typename EnrolledAtT = Aws::Utils::DateTime>
45 void SetEnrolledAt(EnrolledAtT&& value) {
46 m_enrolledAtHasBeenSet = true;
47 m_enrolledAt = std::forward<EnrolledAtT>(value);
48 }
49 template <typename EnrolledAtT = Aws::Utils::DateTime>
50 PartnerInfo& WithEnrolledAt(EnrolledAtT&& value) {
51 SetEnrolledAt(std::forward<EnrolledAtT>(value));
52 return *this;
53 }
55
57
60 inline TierName GetTierName() const { return m_tierName; }
61 inline bool TierNameHasBeenSet() const { return m_tierNameHasBeenSet; }
62 inline void SetTierName(TierName value) {
63 m_tierNameHasBeenSet = true;
64 m_tierName = value;
65 }
67 SetTierName(value);
68 return *this;
69 }
71
73
80 inline PartnerStatus GetStatus() const { return m_status; }
81 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
82 inline void SetStatus(PartnerStatus value) {
83 m_statusHasBeenSet = true;
84 m_status = value;
85 }
87 SetStatus(value);
88 return *this;
89 }
91 private:
92 Aws::Utils::DateTime m_enrolledAt{};
93
94 TierName m_tierName{TierName::NOT_SET};
95
97 bool m_enrolledAtHasBeenSet = false;
98 bool m_tierNameHasBeenSet = false;
99 bool m_statusHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace Lightsail
104} // namespace Aws
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
PartnerInfo & WithStatus(PartnerStatus value)
Definition PartnerInfo.h:86
PartnerInfo & WithTierName(TierName value)
Definition PartnerInfo.h:66
AWS_LIGHTSAIL_API PartnerInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTierName(TierName value)
Definition PartnerInfo.h:62
void SetEnrolledAt(EnrolledAtT &&value)
Definition PartnerInfo.h:45
const Aws::Utils::DateTime & GetEnrolledAt() const
Definition PartnerInfo.h:42
PartnerInfo & WithEnrolledAt(EnrolledAtT &&value)
Definition PartnerInfo.h:50
AWS_LIGHTSAIL_API PartnerInfo(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API PartnerInfo()=default
PartnerStatus GetStatus() const
Definition PartnerInfo.h:80
void SetStatus(PartnerStatus value)
Definition PartnerInfo.h:82
Aws::Utils::Json::JsonValue JsonValue