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,167 @@
/**
* 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/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SageMaker
{
namespace Model
{
/**
* <p>Provides summary information about a model.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ModelSummary">AWS
* API Reference</a></p>
*/
class AWS_SAGEMAKER_API ModelSummary
{
public:
ModelSummary();
ModelSummary(Aws::Utils::Json::JsonView jsonValue);
ModelSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the model that you want a summary for.</p>
*/
inline const Aws::String& GetModelName() const{ return m_modelName; }
/**
* <p>The name of the model that you want a summary for.</p>
*/
inline bool ModelNameHasBeenSet() const { return m_modelNameHasBeenSet; }
/**
* <p>The name of the model that you want a summary for.</p>
*/
inline void SetModelName(const Aws::String& value) { m_modelNameHasBeenSet = true; m_modelName = value; }
/**
* <p>The name of the model that you want a summary for.</p>
*/
inline void SetModelName(Aws::String&& value) { m_modelNameHasBeenSet = true; m_modelName = std::move(value); }
/**
* <p>The name of the model that you want a summary for.</p>
*/
inline void SetModelName(const char* value) { m_modelNameHasBeenSet = true; m_modelName.assign(value); }
/**
* <p>The name of the model that you want a summary for.</p>
*/
inline ModelSummary& WithModelName(const Aws::String& value) { SetModelName(value); return *this;}
/**
* <p>The name of the model that you want a summary for.</p>
*/
inline ModelSummary& WithModelName(Aws::String&& value) { SetModelName(std::move(value)); return *this;}
/**
* <p>The name of the model that you want a summary for.</p>
*/
inline ModelSummary& WithModelName(const char* value) { SetModelName(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the model.</p>
*/
inline const Aws::String& GetModelArn() const{ return m_modelArn; }
/**
* <p>The Amazon Resource Name (ARN) of the model.</p>
*/
inline bool ModelArnHasBeenSet() const { return m_modelArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the model.</p>
*/
inline void SetModelArn(const Aws::String& value) { m_modelArnHasBeenSet = true; m_modelArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the model.</p>
*/
inline void SetModelArn(Aws::String&& value) { m_modelArnHasBeenSet = true; m_modelArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the model.</p>
*/
inline void SetModelArn(const char* value) { m_modelArnHasBeenSet = true; m_modelArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the model.</p>
*/
inline ModelSummary& WithModelArn(const Aws::String& value) { SetModelArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the model.</p>
*/
inline ModelSummary& WithModelArn(Aws::String&& value) { SetModelArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the model.</p>
*/
inline ModelSummary& WithModelArn(const char* value) { SetModelArn(value); return *this;}
/**
* <p>A timestamp that indicates when the model was created.</p>
*/
inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
/**
* <p>A timestamp that indicates when the model was created.</p>
*/
inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
/**
* <p>A timestamp that indicates when the model was created.</p>
*/
inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
/**
* <p>A timestamp that indicates when the model was created.</p>
*/
inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
/**
* <p>A timestamp that indicates when the model was created.</p>
*/
inline ModelSummary& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
/**
* <p>A timestamp that indicates when the model was created.</p>
*/
inline ModelSummary& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
private:
Aws::String m_modelName;
bool m_modelNameHasBeenSet;
Aws::String m_modelArn;
bool m_modelArnHasBeenSet;
Aws::Utils::DateTime m_creationTime;
bool m_creationTimeHasBeenSet;
};
} // namespace Model
} // namespace SageMaker
} // namespace Aws