feat(hos_client_create, hos_client_destory): 多次调用destory不会导致重复释放

This commit is contained in:
彭宣正
2020-12-14 17:24:58 +08:00
parent 505d529c32
commit 10b370e486
55976 changed files with 8544395 additions and 2 deletions

View File

@@ -0,0 +1,147 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sagemaker/SageMaker_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/sagemaker/model/VpcConfig.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SageMaker
{
namespace Model
{
/**
* <p>Security options.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/AutoMLSecurityConfig">AWS
* API Reference</a></p>
*/
class AWS_SAGEMAKER_API AutoMLSecurityConfig
{
public:
AutoMLSecurityConfig();
AutoMLSecurityConfig(Aws::Utils::Json::JsonView jsonValue);
AutoMLSecurityConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The key used to encrypt stored data.</p>
*/
inline const Aws::String& GetVolumeKmsKeyId() const{ return m_volumeKmsKeyId; }
/**
* <p>The key used to encrypt stored data.</p>
*/
inline bool VolumeKmsKeyIdHasBeenSet() const { return m_volumeKmsKeyIdHasBeenSet; }
/**
* <p>The key used to encrypt stored data.</p>
*/
inline void SetVolumeKmsKeyId(const Aws::String& value) { m_volumeKmsKeyIdHasBeenSet = true; m_volumeKmsKeyId = value; }
/**
* <p>The key used to encrypt stored data.</p>
*/
inline void SetVolumeKmsKeyId(Aws::String&& value) { m_volumeKmsKeyIdHasBeenSet = true; m_volumeKmsKeyId = std::move(value); }
/**
* <p>The key used to encrypt stored data.</p>
*/
inline void SetVolumeKmsKeyId(const char* value) { m_volumeKmsKeyIdHasBeenSet = true; m_volumeKmsKeyId.assign(value); }
/**
* <p>The key used to encrypt stored data.</p>
*/
inline AutoMLSecurityConfig& WithVolumeKmsKeyId(const Aws::String& value) { SetVolumeKmsKeyId(value); return *this;}
/**
* <p>The key used to encrypt stored data.</p>
*/
inline AutoMLSecurityConfig& WithVolumeKmsKeyId(Aws::String&& value) { SetVolumeKmsKeyId(std::move(value)); return *this;}
/**
* <p>The key used to encrypt stored data.</p>
*/
inline AutoMLSecurityConfig& WithVolumeKmsKeyId(const char* value) { SetVolumeKmsKeyId(value); return *this;}
/**
* <p>Whether to use traffic encryption between the container layers.</p>
*/
inline bool GetEnableInterContainerTrafficEncryption() const{ return m_enableInterContainerTrafficEncryption; }
/**
* <p>Whether to use traffic encryption between the container layers.</p>
*/
inline bool EnableInterContainerTrafficEncryptionHasBeenSet() const { return m_enableInterContainerTrafficEncryptionHasBeenSet; }
/**
* <p>Whether to use traffic encryption between the container layers.</p>
*/
inline void SetEnableInterContainerTrafficEncryption(bool value) { m_enableInterContainerTrafficEncryptionHasBeenSet = true; m_enableInterContainerTrafficEncryption = value; }
/**
* <p>Whether to use traffic encryption between the container layers.</p>
*/
inline AutoMLSecurityConfig& WithEnableInterContainerTrafficEncryption(bool value) { SetEnableInterContainerTrafficEncryption(value); return *this;}
/**
* <p>VPC configuration.</p>
*/
inline const VpcConfig& GetVpcConfig() const{ return m_vpcConfig; }
/**
* <p>VPC configuration.</p>
*/
inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
/**
* <p>VPC configuration.</p>
*/
inline void SetVpcConfig(const VpcConfig& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; }
/**
* <p>VPC configuration.</p>
*/
inline void SetVpcConfig(VpcConfig&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::move(value); }
/**
* <p>VPC configuration.</p>
*/
inline AutoMLSecurityConfig& WithVpcConfig(const VpcConfig& value) { SetVpcConfig(value); return *this;}
/**
* <p>VPC configuration.</p>
*/
inline AutoMLSecurityConfig& WithVpcConfig(VpcConfig&& value) { SetVpcConfig(std::move(value)); return *this;}
private:
Aws::String m_volumeKmsKeyId;
bool m_volumeKmsKeyIdHasBeenSet;
bool m_enableInterContainerTrafficEncryption;
bool m_enableInterContainerTrafficEncryptionHasBeenSet;
VpcConfig m_vpcConfig;
bool m_vpcConfigHasBeenSet;
};
} // namespace Model
} // namespace SageMaker
} // namespace Aws