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,108 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot/IoT_EXPORTS.h>
#include <aws/iot/model/AwsJobExponentialRolloutRate.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoT
{
namespace Model
{
/**
* <p>Configuration for the rollout of OTA updates.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot-2015-05-28/AwsJobExecutionsRolloutConfig">AWS
* API Reference</a></p>
*/
class AWS_IOT_API AwsJobExecutionsRolloutConfig
{
public:
AwsJobExecutionsRolloutConfig();
AwsJobExecutionsRolloutConfig(Aws::Utils::Json::JsonView jsonValue);
AwsJobExecutionsRolloutConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The maximum number of OTA update job executions started per minute.</p>
*/
inline int GetMaximumPerMinute() const{ return m_maximumPerMinute; }
/**
* <p>The maximum number of OTA update job executions started per minute.</p>
*/
inline bool MaximumPerMinuteHasBeenSet() const { return m_maximumPerMinuteHasBeenSet; }
/**
* <p>The maximum number of OTA update job executions started per minute.</p>
*/
inline void SetMaximumPerMinute(int value) { m_maximumPerMinuteHasBeenSet = true; m_maximumPerMinute = value; }
/**
* <p>The maximum number of OTA update job executions started per minute.</p>
*/
inline AwsJobExecutionsRolloutConfig& WithMaximumPerMinute(int value) { SetMaximumPerMinute(value); return *this;}
/**
* <p>The rate of increase for a job rollout. This parameter allows you to define
* an exponential rate increase for a job rollout.</p>
*/
inline const AwsJobExponentialRolloutRate& GetExponentialRate() const{ return m_exponentialRate; }
/**
* <p>The rate of increase for a job rollout. This parameter allows you to define
* an exponential rate increase for a job rollout.</p>
*/
inline bool ExponentialRateHasBeenSet() const { return m_exponentialRateHasBeenSet; }
/**
* <p>The rate of increase for a job rollout. This parameter allows you to define
* an exponential rate increase for a job rollout.</p>
*/
inline void SetExponentialRate(const AwsJobExponentialRolloutRate& value) { m_exponentialRateHasBeenSet = true; m_exponentialRate = value; }
/**
* <p>The rate of increase for a job rollout. This parameter allows you to define
* an exponential rate increase for a job rollout.</p>
*/
inline void SetExponentialRate(AwsJobExponentialRolloutRate&& value) { m_exponentialRateHasBeenSet = true; m_exponentialRate = std::move(value); }
/**
* <p>The rate of increase for a job rollout. This parameter allows you to define
* an exponential rate increase for a job rollout.</p>
*/
inline AwsJobExecutionsRolloutConfig& WithExponentialRate(const AwsJobExponentialRolloutRate& value) { SetExponentialRate(value); return *this;}
/**
* <p>The rate of increase for a job rollout. This parameter allows you to define
* an exponential rate increase for a job rollout.</p>
*/
inline AwsJobExecutionsRolloutConfig& WithExponentialRate(AwsJobExponentialRolloutRate&& value) { SetExponentialRate(std::move(value)); return *this;}
private:
int m_maximumPerMinute;
bool m_maximumPerMinuteHasBeenSet;
AwsJobExponentialRolloutRate m_exponentialRate;
bool m_exponentialRateHasBeenSet;
};
} // namespace Model
} // namespace IoT
} // namespace Aws