AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
AgenticWorkspaceConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/workspaces/WorkSpaces_EXPORTS.h>
10#include <aws/workspaces/model/AgentEnforcedPolicyAssociation.h>
11#include <aws/workspaces/model/AgenticRuntimeState.h>
12#include <aws/workspaces/model/WorkspaceAgentRuntime.h>
13#include <aws/workspaces/model/WorkspaceAgenticConnector.h>
14#include <aws/workspaces/model/WorkspaceAgenticContext.h>
15#include <aws/workspaces/model/WorkspaceEnforcedPolicyAssociation.h>
16#include <aws/workspaces/model/WorkspaceModel.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Cbor {
23class CborValue;
24} // namespace Cbor
25} // namespace Utils
26namespace WorkSpaces {
27namespace Model {
28
36 public:
37 AWS_WORKSPACES_API AgenticWorkspaceConfiguration() = default;
38 AWS_WORKSPACES_API AgenticWorkspaceConfiguration(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
39 AWS_WORKSPACES_API AgenticWorkspaceConfiguration& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
40 AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
41
43
46 inline const Aws::Vector<WorkspaceModel>& GetModels() const { return m_models; }
47 inline bool ModelsHasBeenSet() const { return m_modelsHasBeenSet; }
48 template <typename ModelsT = Aws::Vector<WorkspaceModel>>
49 void SetModels(ModelsT&& value) {
50 m_modelsHasBeenSet = true;
51 m_models = std::forward<ModelsT>(value);
52 }
53 template <typename ModelsT = Aws::Vector<WorkspaceModel>>
55 SetModels(std::forward<ModelsT>(value));
56 return *this;
57 }
58 template <typename ModelsT = WorkspaceModel>
60 m_modelsHasBeenSet = true;
61 m_models.emplace_back(std::forward<ModelsT>(value));
62 return *this;
63 }
65
67
70 inline const WorkspaceAgentRuntime& GetAgentRuntime() const { return m_agentRuntime; }
71 inline bool AgentRuntimeHasBeenSet() const { return m_agentRuntimeHasBeenSet; }
72 template <typename AgentRuntimeT = WorkspaceAgentRuntime>
73 void SetAgentRuntime(AgentRuntimeT&& value) {
74 m_agentRuntimeHasBeenSet = true;
75 m_agentRuntime = std::forward<AgentRuntimeT>(value);
76 }
77 template <typename AgentRuntimeT = WorkspaceAgentRuntime>
79 SetAgentRuntime(std::forward<AgentRuntimeT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::Vector<WorkspaceAgenticConnector>& GetConnectors() const { return m_connectors; }
89 inline bool ConnectorsHasBeenSet() const { return m_connectorsHasBeenSet; }
90 template <typename ConnectorsT = Aws::Vector<WorkspaceAgenticConnector>>
91 void SetConnectors(ConnectorsT&& value) {
92 m_connectorsHasBeenSet = true;
93 m_connectors = std::forward<ConnectorsT>(value);
94 }
95 template <typename ConnectorsT = Aws::Vector<WorkspaceAgenticConnector>>
97 SetConnectors(std::forward<ConnectorsT>(value));
98 return *this;
99 }
100 template <typename ConnectorsT = WorkspaceAgenticConnector>
102 m_connectorsHasBeenSet = true;
103 m_connectors.emplace_back(std::forward<ConnectorsT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::Vector<WorkspaceAgenticContext>& GetContexts() const { return m_contexts; }
113 inline bool ContextsHasBeenSet() const { return m_contextsHasBeenSet; }
114 template <typename ContextsT = Aws::Vector<WorkspaceAgenticContext>>
115 void SetContexts(ContextsT&& value) {
116 m_contextsHasBeenSet = true;
117 m_contexts = std::forward<ContextsT>(value);
118 }
119 template <typename ContextsT = Aws::Vector<WorkspaceAgenticContext>>
121 SetContexts(std::forward<ContextsT>(value));
122 return *this;
123 }
124 template <typename ContextsT = WorkspaceAgenticContext>
126 m_contextsHasBeenSet = true;
127 m_contexts.emplace_back(std::forward<ContextsT>(value));
128 return *this;
129 }
131
133
137 inline const WorkspaceEnforcedPolicyAssociation& GetWorkspaceEnforcedPolicy() const { return m_workspaceEnforcedPolicy; }
138 inline bool WorkspaceEnforcedPolicyHasBeenSet() const { return m_workspaceEnforcedPolicyHasBeenSet; }
139 template <typename WorkspaceEnforcedPolicyT = WorkspaceEnforcedPolicyAssociation>
140 void SetWorkspaceEnforcedPolicy(WorkspaceEnforcedPolicyT&& value) {
141 m_workspaceEnforcedPolicyHasBeenSet = true;
142 m_workspaceEnforcedPolicy = std::forward<WorkspaceEnforcedPolicyT>(value);
143 }
144 template <typename WorkspaceEnforcedPolicyT = WorkspaceEnforcedPolicyAssociation>
146 SetWorkspaceEnforcedPolicy(std::forward<WorkspaceEnforcedPolicyT>(value));
147 return *this;
148 }
150
152
156 inline const AgentEnforcedPolicyAssociation& GetAgentEnforcedPolicy() const { return m_agentEnforcedPolicy; }
157 inline bool AgentEnforcedPolicyHasBeenSet() const { return m_agentEnforcedPolicyHasBeenSet; }
158 template <typename AgentEnforcedPolicyT = AgentEnforcedPolicyAssociation>
159 void SetAgentEnforcedPolicy(AgentEnforcedPolicyT&& value) {
160 m_agentEnforcedPolicyHasBeenSet = true;
161 m_agentEnforcedPolicy = std::forward<AgentEnforcedPolicyT>(value);
162 }
163 template <typename AgentEnforcedPolicyT = AgentEnforcedPolicyAssociation>
165 SetAgentEnforcedPolicy(std::forward<AgentEnforcedPolicyT>(value));
166 return *this;
167 }
169
171
175 inline const AgenticRuntimeState& GetAgenticRuntimeState() const { return m_agenticRuntimeState; }
176 inline bool AgenticRuntimeStateHasBeenSet() const { return m_agenticRuntimeStateHasBeenSet; }
177 template <typename AgenticRuntimeStateT = AgenticRuntimeState>
178 void SetAgenticRuntimeState(AgenticRuntimeStateT&& value) {
179 m_agenticRuntimeStateHasBeenSet = true;
180 m_agenticRuntimeState = std::forward<AgenticRuntimeStateT>(value);
181 }
182 template <typename AgenticRuntimeStateT = AgenticRuntimeState>
184 SetAgenticRuntimeState(std::forward<AgenticRuntimeStateT>(value));
185 return *this;
186 }
188 private:
190
191 WorkspaceAgentRuntime m_agentRuntime;
192
194
196
197 WorkspaceEnforcedPolicyAssociation m_workspaceEnforcedPolicy;
198
199 AgentEnforcedPolicyAssociation m_agentEnforcedPolicy;
200
201 AgenticRuntimeState m_agenticRuntimeState;
202 bool m_modelsHasBeenSet = false;
203 bool m_agentRuntimeHasBeenSet = false;
204 bool m_connectorsHasBeenSet = false;
205 bool m_contextsHasBeenSet = false;
206 bool m_workspaceEnforcedPolicyHasBeenSet = false;
207 bool m_agentEnforcedPolicyHasBeenSet = false;
208 bool m_agenticRuntimeStateHasBeenSet = false;
209};
210
211} // namespace Model
212} // namespace WorkSpaces
213} // namespace Aws
AWS_WORKSPACES_API AgenticWorkspaceConfiguration()=default
AgenticWorkspaceConfiguration & WithContexts(ContextsT &&value)
AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_WORKSPACES_API AgenticWorkspaceConfiguration(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AgenticWorkspaceConfiguration & WithAgentRuntime(AgentRuntimeT &&value)
AgenticWorkspaceConfiguration & AddConnectors(ConnectorsT &&value)
const Aws::Vector< WorkspaceAgenticContext > & GetContexts() const
AgenticWorkspaceConfiguration & WithConnectors(ConnectorsT &&value)
AgenticWorkspaceConfiguration & AddModels(ModelsT &&value)
AgenticWorkspaceConfiguration & WithWorkspaceEnforcedPolicy(WorkspaceEnforcedPolicyT &&value)
AgenticWorkspaceConfiguration & AddContexts(ContextsT &&value)
const AgentEnforcedPolicyAssociation & GetAgentEnforcedPolicy() const
const Aws::Vector< WorkspaceAgenticConnector > & GetConnectors() const
AgenticWorkspaceConfiguration & WithAgenticRuntimeState(AgenticRuntimeStateT &&value)
const WorkspaceEnforcedPolicyAssociation & GetWorkspaceEnforcedPolicy() const
AgenticWorkspaceConfiguration & WithAgentEnforcedPolicy(AgentEnforcedPolicyT &&value)
const Aws::Vector< WorkspaceModel > & GetModels() const
AgenticWorkspaceConfiguration & WithModels(ModelsT &&value)
AWS_WORKSPACES_API AgenticWorkspaceConfiguration & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
std::vector< T, Aws::Allocator< T > > Vector