AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
38
39
41
44 inline const Aws::Utils::DateTime& GetNotBefore() const{ return m_notBefore; }
45 inline bool NotBeforeHasBeenSet() const { return m_notBeforeHasBeenSet; }
46 inline void SetNotBefore(const Aws::Utils::DateTime& value) { m_notBeforeHasBeenSet = true; m_notBefore = value; }
47 inline void SetNotBefore(Aws::Utils::DateTime&& value) { m_notBeforeHasBeenSet = true; m_notBefore = std::move(value); }
48 inline CertificateValidity& WithNotBefore(const Aws::Utils::DateTime& value) { SetNotBefore(value); return *this;}
49 inline CertificateValidity& WithNotBefore(Aws::Utils::DateTime&& value) { SetNotBefore(std::move(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 inline void SetNotAfter(const Aws::Utils::DateTime& value) { m_notAfterHasBeenSet = true; m_notAfter = value; }
59 inline void SetNotAfter(Aws::Utils::DateTime&& value) { m_notAfterHasBeenSet = true; m_notAfter = std::move(value); }
60 inline CertificateValidity& WithNotAfter(const Aws::Utils::DateTime& value) { SetNotAfter(value); return *this;}
61 inline CertificateValidity& WithNotAfter(Aws::Utils::DateTime&& value) { SetNotAfter(std::move(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
void SetNotBefore(const Aws::Utils::DateTime &value)
void SetNotAfter(Aws::Utils::DateTime &&value)
CertificateValidity & WithNotBefore(const Aws::Utils::DateTime &value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
CertificateValidity & WithNotAfter(const Aws::Utils::DateTime &value)
void SetNotAfter(const Aws::Utils::DateTime &value)
void SetNotBefore(Aws::Utils::DateTime &&value)
AWS_IOT_API CertificateValidity(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetNotBefore() const
CertificateValidity & WithNotAfter(Aws::Utils::DateTime &&value)
AWS_IOT_API CertificateValidity & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetNotAfter() const
CertificateValidity & WithNotBefore(Aws::Utils::DateTime &&value)
Aws::Utils::Json::JsonValue JsonValue