AWS SDK for C++  1.9.132
AWS SDK for C++
CertificateValidity.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace IoT
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
43  inline const Aws::Utils::DateTime& GetNotBefore() const{ return m_notBefore; }
44 
48  inline bool NotBeforeHasBeenSet() const { return m_notBeforeHasBeenSet; }
49 
53  inline void SetNotBefore(const Aws::Utils::DateTime& value) { m_notBeforeHasBeenSet = true; m_notBefore = value; }
54 
58  inline void SetNotBefore(Aws::Utils::DateTime&& value) { m_notBeforeHasBeenSet = true; m_notBefore = std::move(value); }
59 
63  inline CertificateValidity& WithNotBefore(const Aws::Utils::DateTime& value) { SetNotBefore(value); return *this;}
64 
68  inline CertificateValidity& WithNotBefore(Aws::Utils::DateTime&& value) { SetNotBefore(std::move(value)); return *this;}
69 
70 
74  inline const Aws::Utils::DateTime& GetNotAfter() const{ return m_notAfter; }
75 
79  inline bool NotAfterHasBeenSet() const { return m_notAfterHasBeenSet; }
80 
84  inline void SetNotAfter(const Aws::Utils::DateTime& value) { m_notAfterHasBeenSet = true; m_notAfter = value; }
85 
89  inline void SetNotAfter(Aws::Utils::DateTime&& value) { m_notAfterHasBeenSet = true; m_notAfter = std::move(value); }
90 
94  inline CertificateValidity& WithNotAfter(const Aws::Utils::DateTime& value) { SetNotAfter(value); return *this;}
95 
99  inline CertificateValidity& WithNotAfter(Aws::Utils::DateTime&& value) { SetNotAfter(std::move(value)); return *this;}
100 
101  private:
102 
103  Aws::Utils::DateTime m_notBefore;
104  bool m_notBeforeHasBeenSet;
105 
106  Aws::Utils::DateTime m_notAfter;
107  bool m_notAfterHasBeenSet;
108  };
109 
110 } // namespace Model
111 } // namespace IoT
112 } // namespace Aws
Aws::IoT::Model::CertificateValidity::WithNotAfter
CertificateValidity & WithNotAfter(const Aws::Utils::DateTime &value)
Definition: CertificateValidity.h:94
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::IoT::Model::CertificateValidity::WithNotBefore
CertificateValidity & WithNotBefore(const Aws::Utils::DateTime &value)
Definition: CertificateValidity.h:63
Aws::IoT::Model::CertificateValidity::GetNotBefore
const Aws::Utils::DateTime & GetNotBefore() const
Definition: CertificateValidity.h:43
Aws::IoT::Model::CertificateValidity::SetNotBefore
void SetNotBefore(const Aws::Utils::DateTime &value)
Definition: CertificateValidity.h:53
DateTime.h
Aws::IoT::Model::CertificateValidity::operator=
CertificateValidity & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::CertificateValidity::SetNotBefore
void SetNotBefore(Aws::Utils::DateTime &&value)
Definition: CertificateValidity.h:58
Aws::IoT::Model::CertificateValidity::NotAfterHasBeenSet
bool NotAfterHasBeenSet() const
Definition: CertificateValidity.h:79
Aws::IoT::Model::CertificateValidity::CertificateValidity
CertificateValidity()
Aws::IoT::Model::CertificateValidity
Definition: CertificateValidity.h:32
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::CertificateValidity::GetNotAfter
const Aws::Utils::DateTime & GetNotAfter() const
Definition: CertificateValidity.h:74
Aws::IoT::Model::CertificateValidity::SetNotAfter
void SetNotAfter(Aws::Utils::DateTime &&value)
Definition: CertificateValidity.h:89
Aws::IoT::Model::CertificateValidity::CertificateValidity
CertificateValidity(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::CertificateValidity::NotBeforeHasBeenSet
bool NotBeforeHasBeenSet() const
Definition: CertificateValidity.h:48
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::CertificateValidity::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::IoT::Model::CertificateValidity::SetNotAfter
void SetNotAfter(const Aws::Utils::DateTime &value)
Definition: CertificateValidity.h:84
Aws::IoT::Model::CertificateValidity::WithNotAfter
CertificateValidity & WithNotAfter(Aws::Utils::DateTime &&value)
Definition: CertificateValidity.h:99
Aws::IoT::Model::CertificateValidity::WithNotBefore
CertificateValidity & WithNotBefore(Aws::Utils::DateTime &&value)
Definition: CertificateValidity.h:68
IoT_EXPORTS.h