AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
CertificateValidity.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/iot/IoT_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace IoT {
20namespace Model {
21
28 public:
29 AWS_IOT_API CertificateValidity() = default;
33
35
38 inline const Aws::Utils::DateTime& GetNotBefore() const { return m_notBefore; }
39 inline bool NotBeforeHasBeenSet() const { return m_notBeforeHasBeenSet; }
40 template <typename NotBeforeT = Aws::Utils::DateTime>
41 void SetNotBefore(NotBeforeT&& value) {
42 m_notBeforeHasBeenSet = true;
43 m_notBefore = std::forward<NotBeforeT>(value);
44 }
45 template <typename NotBeforeT = Aws::Utils::DateTime>
46 CertificateValidity& WithNotBefore(NotBeforeT&& value) {
47 SetNotBefore(std::forward<NotBeforeT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::Utils::DateTime& GetNotAfter() const { return m_notAfter; }
57 inline bool NotAfterHasBeenSet() const { return m_notAfterHasBeenSet; }
58 template <typename NotAfterT = Aws::Utils::DateTime>
59 void SetNotAfter(NotAfterT&& value) {
60 m_notAfterHasBeenSet = true;
61 m_notAfter = std::forward<NotAfterT>(value);
62 }
63 template <typename NotAfterT = Aws::Utils::DateTime>
64 CertificateValidity& WithNotAfter(NotAfterT&& value) {
65 SetNotAfter(std::forward<NotAfterT>(value));
66 return *this;
67 }
69 private:
70 Aws::Utils::DateTime m_notBefore{};
71
72 Aws::Utils::DateTime m_notAfter{};
73 bool m_notBeforeHasBeenSet = false;
74 bool m_notAfterHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace IoT
79} // namespace Aws
CertificateValidity & WithNotAfter(NotAfterT &&value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
CertificateValidity & WithNotBefore(NotBeforeT &&value)
AWS_IOT_API CertificateValidity(Aws::Utils::Json::JsonView jsonValue)
AWS_IOT_API CertificateValidity()=default
const Aws::Utils::DateTime & GetNotBefore() const
AWS_IOT_API CertificateValidity & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetNotAfter() const
Aws::Utils::Json::JsonValue JsonValue