AWS SDK for C++

AWS SDK for C++ Version 1.11.937

Loading...
Searching...
No Matches
Condition.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/supportauthz/SupportAuthZ_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SupportAuthZ {
20namespace Model {
21
28class Condition {
29 public:
30 AWS_SUPPORTAUTHZ_API Condition() = default;
31 AWS_SUPPORTAUTHZ_API Condition(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SUPPORTAUTHZ_API Condition& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SUPPORTAUTHZ_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::Utils::DateTime& GetAllowAfter() const { return m_allowAfter; }
40 inline bool AllowAfterHasBeenSet() const { return m_allowAfterHasBeenSet; }
41 template <typename AllowAfterT = Aws::Utils::DateTime>
42 void SetAllowAfter(AllowAfterT&& value) {
43 m_allowAfterHasBeenSet = true;
44 m_allowAfter = std::forward<AllowAfterT>(value);
45 }
46 template <typename AllowAfterT = Aws::Utils::DateTime>
47 Condition& WithAllowAfter(AllowAfterT&& value) {
48 SetAllowAfter(std::forward<AllowAfterT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::Utils::DateTime& GetAllowBefore() const { return m_allowBefore; }
58 inline bool AllowBeforeHasBeenSet() const { return m_allowBeforeHasBeenSet; }
59 template <typename AllowBeforeT = Aws::Utils::DateTime>
60 void SetAllowBefore(AllowBeforeT&& value) {
61 m_allowBeforeHasBeenSet = true;
62 m_allowBefore = std::forward<AllowBeforeT>(value);
63 }
64 template <typename AllowBeforeT = Aws::Utils::DateTime>
65 Condition& WithAllowBefore(AllowBeforeT&& value) {
66 SetAllowBefore(std::forward<AllowBeforeT>(value));
67 return *this;
68 }
70 private:
71 Aws::Utils::DateTime m_allowAfter{};
72
73 Aws::Utils::DateTime m_allowBefore{};
74 bool m_allowAfterHasBeenSet = false;
75 bool m_allowBeforeHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace SupportAuthZ
80} // namespace Aws
AWS_SUPPORTAUTHZ_API Condition(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetAllowAfter() const
Definition Condition.h:39
void SetAllowBefore(AllowBeforeT &&value)
Definition Condition.h:60
void SetAllowAfter(AllowAfterT &&value)
Definition Condition.h:42
Condition & WithAllowBefore(AllowBeforeT &&value)
Definition Condition.h:65
const Aws::Utils::DateTime & GetAllowBefore() const
Definition Condition.h:57
Condition & WithAllowAfter(AllowAfterT &&value)
Definition Condition.h:47
AWS_SUPPORTAUTHZ_API Condition & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SUPPORTAUTHZ_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SUPPORTAUTHZ_API Condition()=default
Aws::Utils::Json::JsonValue JsonValue