AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
ValidityWindow.h
1
6#pragma once
7#include <aws/acm/ACM_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ACM {
20namespace Model {
21
28 public:
29 AWS_ACM_API ValidityWindow() = 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 ValidityWindow& 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 ValidityWindow& 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 ACM
79} // namespace Aws
ValidityWindow & WithNotAfter(NotAfterT &&value)
AWS_ACM_API ValidityWindow & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetNotBefore() const
void SetNotBefore(NotBeforeT &&value)
const Aws::Utils::DateTime & GetNotAfter() const
AWS_ACM_API ValidityWindow(Aws::Utils::Json::JsonView jsonValue)
AWS_ACM_API Aws::Utils::Json::JsonValue Jsonize() const
ValidityWindow & WithNotBefore(NotBeforeT &&value)
AWS_ACM_API ValidityWindow()=default
void SetNotAfter(NotAfterT &&value)
Aws::Utils::Json::JsonValue JsonValue