AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
ClusterConfiguration.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/ecs/model/ExecuteCommandConfiguration.h>
9#include <aws/ecs/model/ManagedStorageConfiguration.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ECS {
21namespace Model {
22
30 public:
31 AWS_ECS_API ClusterConfiguration() = default;
35
37
40 inline const ExecuteCommandConfiguration& GetExecuteCommandConfiguration() const { return m_executeCommandConfiguration; }
41 inline bool ExecuteCommandConfigurationHasBeenSet() const { return m_executeCommandConfigurationHasBeenSet; }
42 template <typename ExecuteCommandConfigurationT = ExecuteCommandConfiguration>
43 void SetExecuteCommandConfiguration(ExecuteCommandConfigurationT&& value) {
44 m_executeCommandConfigurationHasBeenSet = true;
45 m_executeCommandConfiguration = std::forward<ExecuteCommandConfigurationT>(value);
46 }
47 template <typename ExecuteCommandConfigurationT = ExecuteCommandConfiguration>
48 ClusterConfiguration& WithExecuteCommandConfiguration(ExecuteCommandConfigurationT&& value) {
49 SetExecuteCommandConfiguration(std::forward<ExecuteCommandConfigurationT>(value));
50 return *this;
51 }
53
55
58 inline const ManagedStorageConfiguration& GetManagedStorageConfiguration() const { return m_managedStorageConfiguration; }
59 inline bool ManagedStorageConfigurationHasBeenSet() const { return m_managedStorageConfigurationHasBeenSet; }
60 template <typename ManagedStorageConfigurationT = ManagedStorageConfiguration>
61 void SetManagedStorageConfiguration(ManagedStorageConfigurationT&& value) {
62 m_managedStorageConfigurationHasBeenSet = true;
63 m_managedStorageConfiguration = std::forward<ManagedStorageConfigurationT>(value);
64 }
65 template <typename ManagedStorageConfigurationT = ManagedStorageConfiguration>
66 ClusterConfiguration& WithManagedStorageConfiguration(ManagedStorageConfigurationT&& value) {
67 SetManagedStorageConfiguration(std::forward<ManagedStorageConfigurationT>(value));
68 return *this;
69 }
71 private:
72 ExecuteCommandConfiguration m_executeCommandConfiguration;
73
74 ManagedStorageConfiguration m_managedStorageConfiguration;
75 bool m_executeCommandConfigurationHasBeenSet = false;
76 bool m_managedStorageConfigurationHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace ECS
81} // namespace Aws
void SetExecuteCommandConfiguration(ExecuteCommandConfigurationT &&value)
ClusterConfiguration & WithExecuteCommandConfiguration(ExecuteCommandConfigurationT &&value)
ClusterConfiguration & WithManagedStorageConfiguration(ManagedStorageConfigurationT &&value)
AWS_ECS_API ClusterConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ECS_API ClusterConfiguration(Aws::Utils::Json::JsonView jsonValue)
void SetManagedStorageConfiguration(ManagedStorageConfigurationT &&value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ECS_API ClusterConfiguration()=default
const ManagedStorageConfiguration & GetManagedStorageConfiguration() const
const ExecuteCommandConfiguration & GetExecuteCommandConfiguration() const
Aws::Utils::Json::JsonValue JsonValue