AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CertificateValidity.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace IoT
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_IOT_API CertificateValidity() = default;
38
39
41
44 inline const Aws::Utils::DateTime& GetNotBefore() const { return m_notBefore; }
45 inline bool NotBeforeHasBeenSet() const { return m_notBeforeHasBeenSet; }
46 template<typename NotBeforeT = Aws::Utils::DateTime>
47 void SetNotBefore(NotBeforeT&& value) { m_notBeforeHasBeenSet = true; m_notBefore = std::forward<NotBeforeT>(value); }
48 template<typename NotBeforeT = Aws::Utils::DateTime>
49 CertificateValidity& WithNotBefore(NotBeforeT&& value) { SetNotBefore(std::forward<NotBeforeT>(value)); return *this;}
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) { m_notAfterHasBeenSet = true; m_notAfter = std::forward<NotAfterT>(value); }
60 template<typename NotAfterT = Aws::Utils::DateTime>
61 CertificateValidity& WithNotAfter(NotAfterT&& value) { SetNotAfter(std::forward<NotAfterT>(value)); return *this;}
63 private:
64
65 Aws::Utils::DateTime m_notBefore{};
66 bool m_notBeforeHasBeenSet = false;
67
68 Aws::Utils::DateTime m_notAfter{};
69 bool m_notAfterHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace IoT
74} // 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