AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
DefaultEnvironmentConfiguration.h
1
6#pragma once
7#include <aws/amplifygen3/AmplifyGen3_EXPORTS.h>
8#include <aws/amplifygen3/model/AppEnvironmentType.h>
9#include <aws/amplifygen3/model/EnvironmentBackendConfigRequest.h>
10#include <aws/amplifygen3/model/EnvironmentNetworkConfigRequest.h>
11#include <aws/amplifygen3/model/EnvironmentPermissionsConfigRequest.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AmplifyGen3 {
23namespace Model {
24
32 public:
33 AWS_AMPLIFYGEN3_API DefaultEnvironmentConfiguration() = default;
36 AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline AppEnvironmentType GetEnvironmentType() const { return m_environmentType; }
43 inline bool EnvironmentTypeHasBeenSet() const { return m_environmentTypeHasBeenSet; }
45 m_environmentTypeHasBeenSet = true;
46 m_environmentType = value;
47 }
53
55
58 inline const EnvironmentPermissionsConfigRequest& GetEnvironmentPermissionsConfig() const { return m_environmentPermissionsConfig; }
59 inline bool EnvironmentPermissionsConfigHasBeenSet() const { return m_environmentPermissionsConfigHasBeenSet; }
60 template <typename EnvironmentPermissionsConfigT = EnvironmentPermissionsConfigRequest>
61 void SetEnvironmentPermissionsConfig(EnvironmentPermissionsConfigT&& value) {
62 m_environmentPermissionsConfigHasBeenSet = true;
63 m_environmentPermissionsConfig = std::forward<EnvironmentPermissionsConfigT>(value);
64 }
65 template <typename EnvironmentPermissionsConfigT = EnvironmentPermissionsConfigRequest>
66 DefaultEnvironmentConfiguration& WithEnvironmentPermissionsConfig(EnvironmentPermissionsConfigT&& value) {
67 SetEnvironmentPermissionsConfig(std::forward<EnvironmentPermissionsConfigT>(value));
68 return *this;
69 }
71
73
77 inline const EnvironmentNetworkConfigRequest& GetEnvironmentNetworkConfig() const { return m_environmentNetworkConfig; }
78 inline bool EnvironmentNetworkConfigHasBeenSet() const { return m_environmentNetworkConfigHasBeenSet; }
79 template <typename EnvironmentNetworkConfigT = EnvironmentNetworkConfigRequest>
80 void SetEnvironmentNetworkConfig(EnvironmentNetworkConfigT&& value) {
81 m_environmentNetworkConfigHasBeenSet = true;
82 m_environmentNetworkConfig = std::forward<EnvironmentNetworkConfigT>(value);
83 }
84 template <typename EnvironmentNetworkConfigT = EnvironmentNetworkConfigRequest>
86 SetEnvironmentNetworkConfig(std::forward<EnvironmentNetworkConfigT>(value));
87 return *this;
88 }
90
92
96 inline const EnvironmentBackendConfigRequest& GetBackend() const { return m_backend; }
97 inline bool BackendHasBeenSet() const { return m_backendHasBeenSet; }
98 template <typename BackendT = EnvironmentBackendConfigRequest>
99 void SetBackend(BackendT&& value) {
100 m_backendHasBeenSet = true;
101 m_backend = std::forward<BackendT>(value);
102 }
103 template <typename BackendT = EnvironmentBackendConfigRequest>
105 SetBackend(std::forward<BackendT>(value));
106 return *this;
107 }
109 private:
111
112 EnvironmentPermissionsConfigRequest m_environmentPermissionsConfig;
113
114 EnvironmentNetworkConfigRequest m_environmentNetworkConfig;
115
116 EnvironmentBackendConfigRequest m_backend;
117 bool m_environmentTypeHasBeenSet = false;
118 bool m_environmentPermissionsConfigHasBeenSet = false;
119 bool m_environmentNetworkConfigHasBeenSet = false;
120 bool m_backendHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace AmplifyGen3
125} // namespace Aws
void SetEnvironmentPermissionsConfig(EnvironmentPermissionsConfigT &&value)
DefaultEnvironmentConfiguration & WithEnvironmentNetworkConfig(EnvironmentNetworkConfigT &&value)
DefaultEnvironmentConfiguration & WithBackend(BackendT &&value)
AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const
const EnvironmentPermissionsConfigRequest & GetEnvironmentPermissionsConfig() const
AWS_AMPLIFYGEN3_API DefaultEnvironmentConfiguration(Aws::Utils::Json::JsonView jsonValue)
DefaultEnvironmentConfiguration & WithEnvironmentType(AppEnvironmentType value)
AWS_AMPLIFYGEN3_API DefaultEnvironmentConfiguration()=default
const EnvironmentNetworkConfigRequest & GetEnvironmentNetworkConfig() const
AWS_AMPLIFYGEN3_API DefaultEnvironmentConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
DefaultEnvironmentConfiguration & WithEnvironmentPermissionsConfig(EnvironmentPermissionsConfigT &&value)
Aws::Utils::Json::JsonValue JsonValue