AWS SDK for C++

AWS SDK for C++ Version 1.11.937

Loading...
Searching...
No Matches
SupportPermitRequest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/supportauthz/SupportAuthZ_EXPORTS.h>
10#include <aws/supportauthz/model/Permit.h>
11#include <aws/supportauthz/model/SupportPermitRequestStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SupportAuthZ {
23namespace Model {
24
31 public:
32 AWS_SUPPORTAUTHZ_API SupportPermitRequest() = default;
33 AWS_SUPPORTAUTHZ_API SupportPermitRequest(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SUPPORTAUTHZ_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetRequestArn() const { return m_requestArn; }
42 inline bool RequestArnHasBeenSet() const { return m_requestArnHasBeenSet; }
43 template <typename RequestArnT = Aws::String>
44 void SetRequestArn(RequestArnT&& value) {
45 m_requestArnHasBeenSet = true;
46 m_requestArn = std::forward<RequestArnT>(value);
47 }
48 template <typename RequestArnT = Aws::String>
49 SupportPermitRequest& WithRequestArn(RequestArnT&& value) {
50 SetRequestArn(std::forward<RequestArnT>(value));
51 return *this;
52 }
54
56
59 inline const Permit& GetPermit() const { return m_permit; }
60 inline bool PermitHasBeenSet() const { return m_permitHasBeenSet; }
61 template <typename PermitT = Permit>
62 void SetPermit(PermitT&& value) {
63 m_permitHasBeenSet = true;
64 m_permit = std::forward<PermitT>(value);
65 }
66 template <typename PermitT = Permit>
67 SupportPermitRequest& WithPermit(PermitT&& value) {
68 SetPermit(std::forward<PermitT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetSupportCaseDisplayId() const { return m_supportCaseDisplayId; }
78 inline bool SupportCaseDisplayIdHasBeenSet() const { return m_supportCaseDisplayIdHasBeenSet; }
79 template <typename SupportCaseDisplayIdT = Aws::String>
80 void SetSupportCaseDisplayId(SupportCaseDisplayIdT&& value) {
81 m_supportCaseDisplayIdHasBeenSet = true;
82 m_supportCaseDisplayId = std::forward<SupportCaseDisplayIdT>(value);
83 }
84 template <typename SupportCaseDisplayIdT = Aws::String>
85 SupportPermitRequest& WithSupportCaseDisplayId(SupportCaseDisplayIdT&& value) {
86 SetSupportCaseDisplayId(std::forward<SupportCaseDisplayIdT>(value));
87 return *this;
88 }
90
92
95 inline SupportPermitRequestStatus GetStatus() const { return m_status; }
96 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
98 m_statusHasBeenSet = true;
99 m_status = value;
100 }
102 SetStatus(value);
103 return *this;
104 }
106
108
111 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
112 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
113 template <typename CreatedAtT = Aws::Utils::DateTime>
114 void SetCreatedAt(CreatedAtT&& value) {
115 m_createdAtHasBeenSet = true;
116 m_createdAt = std::forward<CreatedAtT>(value);
117 }
118 template <typename CreatedAtT = Aws::Utils::DateTime>
119 SupportPermitRequest& WithCreatedAt(CreatedAtT&& value) {
120 SetCreatedAt(std::forward<CreatedAtT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
130 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
131 template <typename UpdatedAtT = Aws::Utils::DateTime>
132 void SetUpdatedAt(UpdatedAtT&& value) {
133 m_updatedAtHasBeenSet = true;
134 m_updatedAt = std::forward<UpdatedAtT>(value);
135 }
136 template <typename UpdatedAtT = Aws::Utils::DateTime>
137 SupportPermitRequest& WithUpdatedAt(UpdatedAtT&& value) {
138 SetUpdatedAt(std::forward<UpdatedAtT>(value));
139 return *this;
140 }
142 private:
143 Aws::String m_requestArn;
144
145 Permit m_permit;
146
147 Aws::String m_supportCaseDisplayId;
148
150
151 Aws::Utils::DateTime m_createdAt{};
152
153 Aws::Utils::DateTime m_updatedAt{};
154 bool m_requestArnHasBeenSet = false;
155 bool m_permitHasBeenSet = false;
156 bool m_supportCaseDisplayIdHasBeenSet = false;
157 bool m_statusHasBeenSet = false;
158 bool m_createdAtHasBeenSet = false;
159 bool m_updatedAtHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace SupportAuthZ
164} // namespace Aws
SupportPermitRequest & WithSupportCaseDisplayId(SupportCaseDisplayIdT &&value)
void SetStatus(SupportPermitRequestStatus value)
const Aws::Utils::DateTime & GetUpdatedAt() const
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_SUPPORTAUTHZ_API SupportPermitRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
SupportPermitRequest & WithPermit(PermitT &&value)
AWS_SUPPORTAUTHZ_API SupportPermitRequest()=default
AWS_SUPPORTAUTHZ_API SupportPermitRequest(Aws::Utils::Json::JsonView jsonValue)
AWS_SUPPORTAUTHZ_API Aws::Utils::Json::JsonValue Jsonize() const
SupportPermitRequestStatus GetStatus() const
SupportPermitRequest & WithStatus(SupportPermitRequestStatus value)
SupportPermitRequest & WithRequestArn(RequestArnT &&value)
SupportPermitRequest & WithCreatedAt(CreatedAtT &&value)
void SetSupportCaseDisplayId(SupportCaseDisplayIdT &&value)
SupportPermitRequest & WithUpdatedAt(UpdatedAtT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue