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,84 @@
/**
* 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/sagemaker/model/AutoMLS3DataSource.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SageMaker
{
namespace Model
{
/**
* <p>The data source for the Autopilot job.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/AutoMLDataSource">AWS
* API Reference</a></p>
*/
class AWS_SAGEMAKER_API AutoMLDataSource
{
public:
AutoMLDataSource();
AutoMLDataSource(Aws::Utils::Json::JsonView jsonValue);
AutoMLDataSource& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The Amazon S3 location of the input data.</p> <p>The input data must
* be in CSV format and contain at least 1000 rows.</p>
*/
inline const AutoMLS3DataSource& GetS3DataSource() const{ return m_s3DataSource; }
/**
* <p>The Amazon S3 location of the input data.</p> <p>The input data must
* be in CSV format and contain at least 1000 rows.</p>
*/
inline bool S3DataSourceHasBeenSet() const { return m_s3DataSourceHasBeenSet; }
/**
* <p>The Amazon S3 location of the input data.</p> <p>The input data must
* be in CSV format and contain at least 1000 rows.</p>
*/
inline void SetS3DataSource(const AutoMLS3DataSource& value) { m_s3DataSourceHasBeenSet = true; m_s3DataSource = value; }
/**
* <p>The Amazon S3 location of the input data.</p> <p>The input data must
* be in CSV format and contain at least 1000 rows.</p>
*/
inline void SetS3DataSource(AutoMLS3DataSource&& value) { m_s3DataSourceHasBeenSet = true; m_s3DataSource = std::move(value); }
/**
* <p>The Amazon S3 location of the input data.</p> <p>The input data must
* be in CSV format and contain at least 1000 rows.</p>
*/
inline AutoMLDataSource& WithS3DataSource(const AutoMLS3DataSource& value) { SetS3DataSource(value); return *this;}
/**
* <p>The Amazon S3 location of the input data.</p> <p>The input data must
* be in CSV format and contain at least 1000 rows.</p>
*/
inline AutoMLDataSource& WithS3DataSource(AutoMLS3DataSource&& value) { SetS3DataSource(std::move(value)); return *this;}
private:
AutoMLS3DataSource m_s3DataSource;
bool m_s3DataSourceHasBeenSet;
};
} // namespace Model
} // namespace SageMaker
} // namespace Aws