AWS SDK for C++

AWS SDK for C++ Version 1.11.850

Loading...
Searching...
No Matches
Expiration.h
1
6#pragma once
7#include <aws/acm/ACM_EXPORTS.h>
8#include <aws/acm/model/TimeType.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 Expiration() = default;
30 AWS_ACM_API Expiration(Aws::Utils::Json::JsonView jsonValue);
33
35
38 inline long long GetValue() const { return m_value; }
39 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
40 inline void SetValue(long long value) {
41 m_valueHasBeenSet = true;
42 m_value = value;
43 }
44 inline Expiration& WithValue(long long value) {
45 SetValue(value);
46 return *this;
47 }
49
51
54 inline TimeType GetType() const { return m_type; }
55 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
56 inline void SetType(TimeType value) {
57 m_typeHasBeenSet = true;
58 m_type = value;
59 }
60 inline Expiration& WithType(TimeType value) {
61 SetType(value);
62 return *this;
63 }
65 private:
66 long long m_value{0};
67
69 bool m_valueHasBeenSet = false;
70 bool m_typeHasBeenSet = false;
71};
72
73} // namespace Model
74} // namespace ACM
75} // namespace Aws
AWS_ACM_API Expiration & operator=(Aws::Utils::Json::JsonView jsonValue)
Expiration & WithType(TimeType value)
Definition Expiration.h:60
AWS_ACM_API Expiration(Aws::Utils::Json::JsonView jsonValue)
void SetType(TimeType value)
Definition Expiration.h:56
AWS_ACM_API Expiration()=default
void SetValue(long long value)
Definition Expiration.h:40
TimeType GetType() const
Definition Expiration.h:54
AWS_ACM_API Aws::Utils::Json::JsonValue Jsonize() const
Expiration & WithValue(long long value)
Definition Expiration.h:44
long long GetValue() const
Definition Expiration.h:38
Aws::Utils::Json::JsonValue JsonValue