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,103 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/ssm/SSM_EXPORTS.h>
#include <aws/ssm/model/SeveritySummary.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SSM
{
namespace Model
{
/**
* <p>A summary of resources that are not compliant. The summary is organized
* according to resource type.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/NonCompliantSummary">AWS
* API Reference</a></p>
*/
class AWS_SSM_API NonCompliantSummary
{
public:
NonCompliantSummary();
NonCompliantSummary(Aws::Utils::Json::JsonView jsonValue);
NonCompliantSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The total number of compliance items that are not compliant.</p>
*/
inline int GetNonCompliantCount() const{ return m_nonCompliantCount; }
/**
* <p>The total number of compliance items that are not compliant.</p>
*/
inline bool NonCompliantCountHasBeenSet() const { return m_nonCompliantCountHasBeenSet; }
/**
* <p>The total number of compliance items that are not compliant.</p>
*/
inline void SetNonCompliantCount(int value) { m_nonCompliantCountHasBeenSet = true; m_nonCompliantCount = value; }
/**
* <p>The total number of compliance items that are not compliant.</p>
*/
inline NonCompliantSummary& WithNonCompliantCount(int value) { SetNonCompliantCount(value); return *this;}
/**
* <p>A summary of the non-compliance severity by compliance type</p>
*/
inline const SeveritySummary& GetSeveritySummary() const{ return m_severitySummary; }
/**
* <p>A summary of the non-compliance severity by compliance type</p>
*/
inline bool SeveritySummaryHasBeenSet() const { return m_severitySummaryHasBeenSet; }
/**
* <p>A summary of the non-compliance severity by compliance type</p>
*/
inline void SetSeveritySummary(const SeveritySummary& value) { m_severitySummaryHasBeenSet = true; m_severitySummary = value; }
/**
* <p>A summary of the non-compliance severity by compliance type</p>
*/
inline void SetSeveritySummary(SeveritySummary&& value) { m_severitySummaryHasBeenSet = true; m_severitySummary = std::move(value); }
/**
* <p>A summary of the non-compliance severity by compliance type</p>
*/
inline NonCompliantSummary& WithSeveritySummary(const SeveritySummary& value) { SetSeveritySummary(value); return *this;}
/**
* <p>A summary of the non-compliance severity by compliance type</p>
*/
inline NonCompliantSummary& WithSeveritySummary(SeveritySummary&& value) { SetSeveritySummary(std::move(value)); return *this;}
private:
int m_nonCompliantCount;
bool m_nonCompliantCountHasBeenSet;
SeveritySummary m_severitySummary;
bool m_severitySummaryHasBeenSet;
};
} // namespace Model
} // namespace SSM
} // namespace Aws