AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SageMaker
22{
23namespace Model
24{
25
35 {
36 public:
37 AWS_SAGEMAKER_API NetworkConfig() = default;
38 AWS_SAGEMAKER_API NetworkConfig(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SAGEMAKER_API NetworkConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
50 inline bool GetEnableInterContainerTrafficEncryption() const { return m_enableInterContainerTrafficEncryption; }
51 inline bool EnableInterContainerTrafficEncryptionHasBeenSet() const { return m_enableInterContainerTrafficEncryptionHasBeenSet; }
52 inline void SetEnableInterContainerTrafficEncryption(bool value) { m_enableInterContainerTrafficEncryptionHasBeenSet = true; m_enableInterContainerTrafficEncryption = value; }
55
57
61 inline bool GetEnableNetworkIsolation() const { return m_enableNetworkIsolation; }
62 inline bool EnableNetworkIsolationHasBeenSet() const { return m_enableNetworkIsolationHasBeenSet; }
63 inline void SetEnableNetworkIsolation(bool value) { m_enableNetworkIsolationHasBeenSet = true; m_enableNetworkIsolation = value; }
64 inline NetworkConfig& WithEnableNetworkIsolation(bool value) { SetEnableNetworkIsolation(value); return *this;}
66
68
69 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
70 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
71 template<typename VpcConfigT = VpcConfig>
72 void SetVpcConfig(VpcConfigT&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::forward<VpcConfigT>(value); }
73 template<typename VpcConfigT = VpcConfig>
74 NetworkConfig& WithVpcConfig(VpcConfigT&& value) { SetVpcConfig(std::forward<VpcConfigT>(value)); return *this;}
76 private:
77
78 bool m_enableInterContainerTrafficEncryption{false};
79 bool m_enableInterContainerTrafficEncryptionHasBeenSet = false;
80
81 bool m_enableNetworkIsolation{false};
82 bool m_enableNetworkIsolationHasBeenSet = false;
83
84 VpcConfig m_vpcConfig;
85 bool m_vpcConfigHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace SageMaker
90} // 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