AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StandbyWorkspace.h
1
6#pragma once
7#include <aws/workspaces/WorkSpaces_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/workspaces/model/DataReplication.h>
11#include <aws/workspaces/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace WorkSpaces
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_WORKSPACES_API StandbyWorkspace();
38 AWS_WORKSPACES_API StandbyWorkspace(Aws::Utils::Json::JsonView jsonValue);
40 AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetPrimaryWorkspaceId() const{ return m_primaryWorkspaceId; }
48 inline bool PrimaryWorkspaceIdHasBeenSet() const { return m_primaryWorkspaceIdHasBeenSet; }
49 inline void SetPrimaryWorkspaceId(const Aws::String& value) { m_primaryWorkspaceIdHasBeenSet = true; m_primaryWorkspaceId = value; }
50 inline void SetPrimaryWorkspaceId(Aws::String&& value) { m_primaryWorkspaceIdHasBeenSet = true; m_primaryWorkspaceId = std::move(value); }
51 inline void SetPrimaryWorkspaceId(const char* value) { m_primaryWorkspaceIdHasBeenSet = true; m_primaryWorkspaceId.assign(value); }
52 inline StandbyWorkspace& WithPrimaryWorkspaceId(const Aws::String& value) { SetPrimaryWorkspaceId(value); return *this;}
53 inline StandbyWorkspace& WithPrimaryWorkspaceId(Aws::String&& value) { SetPrimaryWorkspaceId(std::move(value)); return *this;}
54 inline StandbyWorkspace& WithPrimaryWorkspaceId(const char* value) { SetPrimaryWorkspaceId(value); return *this;}
56
58
61 inline const Aws::String& GetVolumeEncryptionKey() const{ return m_volumeEncryptionKey; }
62 inline bool VolumeEncryptionKeyHasBeenSet() const { return m_volumeEncryptionKeyHasBeenSet; }
63 inline void SetVolumeEncryptionKey(const Aws::String& value) { m_volumeEncryptionKeyHasBeenSet = true; m_volumeEncryptionKey = value; }
64 inline void SetVolumeEncryptionKey(Aws::String&& value) { m_volumeEncryptionKeyHasBeenSet = true; m_volumeEncryptionKey = std::move(value); }
65 inline void SetVolumeEncryptionKey(const char* value) { m_volumeEncryptionKeyHasBeenSet = true; m_volumeEncryptionKey.assign(value); }
66 inline StandbyWorkspace& WithVolumeEncryptionKey(const Aws::String& value) { SetVolumeEncryptionKey(value); return *this;}
67 inline StandbyWorkspace& WithVolumeEncryptionKey(Aws::String&& value) { SetVolumeEncryptionKey(std::move(value)); return *this;}
68 inline StandbyWorkspace& WithVolumeEncryptionKey(const char* value) { SetVolumeEncryptionKey(value); return *this;}
70
72
75 inline const Aws::String& GetDirectoryId() const{ return m_directoryId; }
76 inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
77 inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
78 inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::move(value); }
79 inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); }
80 inline StandbyWorkspace& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;}
81 inline StandbyWorkspace& WithDirectoryId(Aws::String&& value) { SetDirectoryId(std::move(value)); return *this;}
82 inline StandbyWorkspace& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;}
84
86
89 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
90 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
91 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
92 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
93 inline StandbyWorkspace& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
94 inline StandbyWorkspace& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
95 inline StandbyWorkspace& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
96 inline StandbyWorkspace& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
98
100
104 inline const DataReplication& GetDataReplication() const{ return m_dataReplication; }
105 inline bool DataReplicationHasBeenSet() const { return m_dataReplicationHasBeenSet; }
106 inline void SetDataReplication(const DataReplication& value) { m_dataReplicationHasBeenSet = true; m_dataReplication = value; }
107 inline void SetDataReplication(DataReplication&& value) { m_dataReplicationHasBeenSet = true; m_dataReplication = std::move(value); }
108 inline StandbyWorkspace& WithDataReplication(const DataReplication& value) { SetDataReplication(value); return *this;}
109 inline StandbyWorkspace& WithDataReplication(DataReplication&& value) { SetDataReplication(std::move(value)); return *this;}
111 private:
112
113 Aws::String m_primaryWorkspaceId;
114 bool m_primaryWorkspaceIdHasBeenSet = false;
115
116 Aws::String m_volumeEncryptionKey;
117 bool m_volumeEncryptionKeyHasBeenSet = false;
118
119 Aws::String m_directoryId;
120 bool m_directoryIdHasBeenSet = false;
121
122 Aws::Vector<Tag> m_tags;
123 bool m_tagsHasBeenSet = false;
124
125 DataReplication m_dataReplication;
126 bool m_dataReplicationHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace WorkSpaces
131} // namespace Aws
StandbyWorkspace & AddTags(Tag &&value)
const Aws::String & GetVolumeEncryptionKey() const
AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPrimaryWorkspaceId(const char *value)
AWS_WORKSPACES_API StandbyWorkspace(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDirectoryId() const
void SetTags(Aws::Vector< Tag > &&value)
void SetDirectoryId(const Aws::String &value)
StandbyWorkspace & WithTags(const Aws::Vector< Tag > &value)
void SetDataReplication(DataReplication &&value)
StandbyWorkspace & WithDataReplication(const DataReplication &value)
StandbyWorkspace & WithPrimaryWorkspaceId(const char *value)
void SetPrimaryWorkspaceId(Aws::String &&value)
const Aws::Vector< Tag > & GetTags() const
const DataReplication & GetDataReplication() const
StandbyWorkspace & WithDirectoryId(const Aws::String &value)
void SetVolumeEncryptionKey(const Aws::String &value)
void SetVolumeEncryptionKey(const char *value)
StandbyWorkspace & WithDirectoryId(const char *value)
AWS_WORKSPACES_API StandbyWorkspace & operator=(Aws::Utils::Json::JsonView jsonValue)
StandbyWorkspace & AddTags(const Tag &value)
StandbyWorkspace & WithPrimaryWorkspaceId(const Aws::String &value)
StandbyWorkspace & WithDataReplication(DataReplication &&value)
void SetTags(const Aws::Vector< Tag > &value)
const Aws::String & GetPrimaryWorkspaceId() const
StandbyWorkspace & WithDirectoryId(Aws::String &&value)
void SetDataReplication(const DataReplication &value)
StandbyWorkspace & WithVolumeEncryptionKey(const char *value)
StandbyWorkspace & WithPrimaryWorkspaceId(Aws::String &&value)
StandbyWorkspace & WithTags(Aws::Vector< Tag > &&value)
StandbyWorkspace & WithVolumeEncryptionKey(Aws::String &&value)
void SetVolumeEncryptionKey(Aws::String &&value)
void SetPrimaryWorkspaceId(const Aws::String &value)
StandbyWorkspace & WithVolumeEncryptionKey(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue