AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PersonalAccessTokenConfiguration.h
1
6#pragma once
7#include <aws/workmail/WorkMail_EXPORTS.h>
8#include <aws/workmail/model/PersonalAccessTokenConfigurationStatus.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 WorkMail
22{
23namespace Model
24{
25
32 {
33 public:
37 AWS_WORKMAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
52 inline const PersonalAccessTokenConfigurationStatus& GetStatus() const{ return m_status; }
53 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
54 inline void SetStatus(const PersonalAccessTokenConfigurationStatus& value) { m_statusHasBeenSet = true; m_status = value; }
55 inline void SetStatus(PersonalAccessTokenConfigurationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
59
61
64 inline int GetLifetimeInDays() const{ return m_lifetimeInDays; }
65 inline bool LifetimeInDaysHasBeenSet() const { return m_lifetimeInDaysHasBeenSet; }
66 inline void SetLifetimeInDays(int value) { m_lifetimeInDaysHasBeenSet = true; m_lifetimeInDays = value; }
67 inline PersonalAccessTokenConfiguration& WithLifetimeInDays(int value) { SetLifetimeInDays(value); return *this;}
69 private:
70
72 bool m_statusHasBeenSet = false;
73
74 int m_lifetimeInDays;
75 bool m_lifetimeInDaysHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace WorkMail
80} // namespace Aws
AWS_WORKMAIL_API PersonalAccessTokenConfiguration(Aws::Utils::Json::JsonView jsonValue)
PersonalAccessTokenConfiguration & WithStatus(PersonalAccessTokenConfigurationStatus &&value)
void SetStatus(PersonalAccessTokenConfigurationStatus &&value)
PersonalAccessTokenConfiguration & WithLifetimeInDays(int value)
AWS_WORKMAIL_API PersonalAccessTokenConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WORKMAIL_API Aws::Utils::Json::JsonValue Jsonize() const
const PersonalAccessTokenConfigurationStatus & GetStatus() const
void SetStatus(const PersonalAccessTokenConfigurationStatus &value)
PersonalAccessTokenConfiguration & WithStatus(const PersonalAccessTokenConfigurationStatus &value)
Aws::Utils::Json::JsonValue JsonValue