AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ModificationState.h
1
6#pragma once
7#include <aws/workspaces/WorkSpaces_EXPORTS.h>
8#include <aws/workspaces/model/ModificationResourceEnum.h>
9#include <aws/workspaces/model/ModificationStateEnum.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace WorkSpaces
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_WORKSPACES_API ModificationState();
36 AWS_WORKSPACES_API ModificationState(Aws::Utils::Json::JsonView jsonValue);
38 AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const ModificationResourceEnum& GetResource() const{ return m_resource; }
46 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
47 inline void SetResource(const ModificationResourceEnum& value) { m_resourceHasBeenSet = true; m_resource = value; }
48 inline void SetResource(ModificationResourceEnum&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
49 inline ModificationState& WithResource(const ModificationResourceEnum& value) { SetResource(value); return *this;}
50 inline ModificationState& WithResource(ModificationResourceEnum&& value) { SetResource(std::move(value)); return *this;}
52
54
57 inline const ModificationStateEnum& GetState() const{ return m_state; }
58 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
59 inline void SetState(const ModificationStateEnum& value) { m_stateHasBeenSet = true; m_state = value; }
60 inline void SetState(ModificationStateEnum&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
61 inline ModificationState& WithState(const ModificationStateEnum& value) { SetState(value); return *this;}
62 inline ModificationState& WithState(ModificationStateEnum&& value) { SetState(std::move(value)); return *this;}
64 private:
65
66 ModificationResourceEnum m_resource;
67 bool m_resourceHasBeenSet = false;
68
70 bool m_stateHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace WorkSpaces
75} // namespace Aws
ModificationState & WithState(ModificationStateEnum &&value)
void SetState(const ModificationStateEnum &value)
const ModificationResourceEnum & GetResource() const
void SetResource(const ModificationResourceEnum &value)
ModificationState & WithResource(const ModificationResourceEnum &value)
AWS_WORKSPACES_API ModificationState(Aws::Utils::Json::JsonView jsonValue)
const ModificationStateEnum & GetState() const
AWS_WORKSPACES_API ModificationState & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetState(ModificationStateEnum &&value)
AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
void SetResource(ModificationResourceEnum &&value)
ModificationState & WithResource(ModificationResourceEnum &&value)
ModificationState & WithState(const ModificationStateEnum &value)
Aws::Utils::Json::JsonValue JsonValue