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,129 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
#include <aws/glue/GlueRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Glue
{
namespace Model
{
/**
*/
class AWS_GLUE_API GetJobBookmarkRequest : public GlueRequest
{
public:
GetJobBookmarkRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "GetJobBookmark"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the job in question.</p>
*/
inline const Aws::String& GetJobName() const{ return m_jobName; }
/**
* <p>The name of the job in question.</p>
*/
inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
/**
* <p>The name of the job in question.</p>
*/
inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; }
/**
* <p>The name of the job in question.</p>
*/
inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); }
/**
* <p>The name of the job in question.</p>
*/
inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); }
/**
* <p>The name of the job in question.</p>
*/
inline GetJobBookmarkRequest& WithJobName(const Aws::String& value) { SetJobName(value); return *this;}
/**
* <p>The name of the job in question.</p>
*/
inline GetJobBookmarkRequest& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;}
/**
* <p>The name of the job in question.</p>
*/
inline GetJobBookmarkRequest& WithJobName(const char* value) { SetJobName(value); return *this;}
/**
* <p>The unique run identifier associated with this job run.</p>
*/
inline const Aws::String& GetRunId() const{ return m_runId; }
/**
* <p>The unique run identifier associated with this job run.</p>
*/
inline bool RunIdHasBeenSet() const { return m_runIdHasBeenSet; }
/**
* <p>The unique run identifier associated with this job run.</p>
*/
inline void SetRunId(const Aws::String& value) { m_runIdHasBeenSet = true; m_runId = value; }
/**
* <p>The unique run identifier associated with this job run.</p>
*/
inline void SetRunId(Aws::String&& value) { m_runIdHasBeenSet = true; m_runId = std::move(value); }
/**
* <p>The unique run identifier associated with this job run.</p>
*/
inline void SetRunId(const char* value) { m_runIdHasBeenSet = true; m_runId.assign(value); }
/**
* <p>The unique run identifier associated with this job run.</p>
*/
inline GetJobBookmarkRequest& WithRunId(const Aws::String& value) { SetRunId(value); return *this;}
/**
* <p>The unique run identifier associated with this job run.</p>
*/
inline GetJobBookmarkRequest& WithRunId(Aws::String&& value) { SetRunId(std::move(value)); return *this;}
/**
* <p>The unique run identifier associated with this job run.</p>
*/
inline GetJobBookmarkRequest& WithRunId(const char* value) { SetRunId(value); return *this;}
private:
Aws::String m_jobName;
bool m_jobNameHasBeenSet;
Aws::String m_runId;
bool m_runIdHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // namespace Aws