AWS SDK for C++

AWS SDK for C++ Version 1.11.764

Loading...
Searching...
No Matches
MfaMethod.h
1
6#pragma once
7#include <aws/mpa/MPA_EXPORTS.h>
8#include <aws/mpa/model/MfaSyncStatus.h>
9#include <aws/mpa/model/MfaType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace MPA {
21namespace Model {
22
29class MfaMethod {
30 public:
31 AWS_MPA_API MfaMethod() = default;
32 AWS_MPA_API MfaMethod(Aws::Utils::Json::JsonView jsonValue);
35
37
40 inline MfaType GetType() const { return m_type; }
41 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
42 inline void SetType(MfaType value) {
43 m_typeHasBeenSet = true;
44 m_type = value;
45 }
46 inline MfaMethod& WithType(MfaType value) {
47 SetType(value);
48 return *this;
49 }
51
53
57 inline MfaSyncStatus GetSyncStatus() const { return m_syncStatus; }
58 inline bool SyncStatusHasBeenSet() const { return m_syncStatusHasBeenSet; }
59 inline void SetSyncStatus(MfaSyncStatus value) {
60 m_syncStatusHasBeenSet = true;
61 m_syncStatus = value;
62 }
64 SetSyncStatus(value);
65 return *this;
66 }
68 private:
70
72 bool m_typeHasBeenSet = false;
73 bool m_syncStatusHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace MPA
78} // namespace Aws
AWS_MPA_API MfaMethod & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MPA_API Aws::Utils::Json::JsonValue Jsonize() const
bool TypeHasBeenSet() const
Definition MfaMethod.h:41
void SetType(MfaType value)
Definition MfaMethod.h:42
bool SyncStatusHasBeenSet() const
Definition MfaMethod.h:58
AWS_MPA_API MfaMethod()=default
MfaMethod & WithSyncStatus(MfaSyncStatus value)
Definition MfaMethod.h:63
MfaSyncStatus GetSyncStatus() const
Definition MfaMethod.h:57
void SetSyncStatus(MfaSyncStatus value)
Definition MfaMethod.h:59
AWS_MPA_API MfaMethod(Aws::Utils::Json::JsonView jsonValue)
MfaType GetType() const
Definition MfaMethod.h:40
MfaMethod & WithType(MfaType value)
Definition MfaMethod.h:46
Aws::Utils::Json::JsonValue JsonValue