AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
NetworkConfig.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/model/VpcConfig.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SageMaker {
20namespace Model {
21
31 public:
32 AWS_SAGEMAKER_API NetworkConfig() = default;
33 AWS_SAGEMAKER_API NetworkConfig(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SAGEMAKER_API NetworkConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
44 inline bool GetEnableInterContainerTrafficEncryption() const { return m_enableInterContainerTrafficEncryption; }
45 inline bool EnableInterContainerTrafficEncryptionHasBeenSet() const { return m_enableInterContainerTrafficEncryptionHasBeenSet; }
47 m_enableInterContainerTrafficEncryptionHasBeenSet = true;
48 m_enableInterContainerTrafficEncryption = value;
49 }
52 return *this;
53 }
55
57
61 inline bool GetEnableNetworkIsolation() const { return m_enableNetworkIsolation; }
62 inline bool EnableNetworkIsolationHasBeenSet() const { return m_enableNetworkIsolationHasBeenSet; }
63 inline void SetEnableNetworkIsolation(bool value) {
64 m_enableNetworkIsolationHasBeenSet = true;
65 m_enableNetworkIsolation = value;
66 }
69 return *this;
70 }
72
74
75 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
76 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
77 template <typename VpcConfigT = VpcConfig>
78 void SetVpcConfig(VpcConfigT&& value) {
79 m_vpcConfigHasBeenSet = true;
80 m_vpcConfig = std::forward<VpcConfigT>(value);
81 }
82 template <typename VpcConfigT = VpcConfig>
83 NetworkConfig& WithVpcConfig(VpcConfigT&& value) {
84 SetVpcConfig(std::forward<VpcConfigT>(value));
85 return *this;
86 }
88 private:
89 bool m_enableInterContainerTrafficEncryption{false};
90
91 bool m_enableNetworkIsolation{false};
92
93 VpcConfig m_vpcConfig;
94 bool m_enableInterContainerTrafficEncryptionHasBeenSet = false;
95 bool m_enableNetworkIsolationHasBeenSet = false;
96 bool m_vpcConfigHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace SageMaker
101} // namespace Aws
AWS_SAGEMAKER_API NetworkConfig(Aws::Utils::Json::JsonView jsonValue)
void SetVpcConfig(VpcConfigT &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEnableInterContainerTrafficEncryption(bool value)
NetworkConfig & WithEnableInterContainerTrafficEncryption(bool value)
AWS_SAGEMAKER_API NetworkConfig()=default
bool EnableInterContainerTrafficEncryptionHasBeenSet() const
NetworkConfig & WithVpcConfig(VpcConfigT &&value)
const VpcConfig & GetVpcConfig() const
AWS_SAGEMAKER_API NetworkConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
bool GetEnableInterContainerTrafficEncryption() const
NetworkConfig & WithEnableNetworkIsolation(bool value)
Aws::Utils::Json::JsonValue JsonValue