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,225 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/quicksight/QuickSight_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/quicksight/model/StringParameter.h>
#include <aws/quicksight/model/IntegerParameter.h>
#include <aws/quicksight/model/DecimalParameter.h>
#include <aws/quicksight/model/DateTimeParameter.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace QuickSight
{
namespace Model
{
/**
* <p>A list of QuickSight parameters and the list's override values.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/Parameters">AWS
* API Reference</a></p>
*/
class AWS_QUICKSIGHT_API Parameters
{
public:
Parameters();
Parameters(Aws::Utils::Json::JsonView jsonValue);
Parameters& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>String parameters.</p>
*/
inline const Aws::Vector<StringParameter>& GetStringParameters() const{ return m_stringParameters; }
/**
* <p>String parameters.</p>
*/
inline bool StringParametersHasBeenSet() const { return m_stringParametersHasBeenSet; }
/**
* <p>String parameters.</p>
*/
inline void SetStringParameters(const Aws::Vector<StringParameter>& value) { m_stringParametersHasBeenSet = true; m_stringParameters = value; }
/**
* <p>String parameters.</p>
*/
inline void SetStringParameters(Aws::Vector<StringParameter>&& value) { m_stringParametersHasBeenSet = true; m_stringParameters = std::move(value); }
/**
* <p>String parameters.</p>
*/
inline Parameters& WithStringParameters(const Aws::Vector<StringParameter>& value) { SetStringParameters(value); return *this;}
/**
* <p>String parameters.</p>
*/
inline Parameters& WithStringParameters(Aws::Vector<StringParameter>&& value) { SetStringParameters(std::move(value)); return *this;}
/**
* <p>String parameters.</p>
*/
inline Parameters& AddStringParameters(const StringParameter& value) { m_stringParametersHasBeenSet = true; m_stringParameters.push_back(value); return *this; }
/**
* <p>String parameters.</p>
*/
inline Parameters& AddStringParameters(StringParameter&& value) { m_stringParametersHasBeenSet = true; m_stringParameters.push_back(std::move(value)); return *this; }
/**
* <p>Integer parameters.</p>
*/
inline const Aws::Vector<IntegerParameter>& GetIntegerParameters() const{ return m_integerParameters; }
/**
* <p>Integer parameters.</p>
*/
inline bool IntegerParametersHasBeenSet() const { return m_integerParametersHasBeenSet; }
/**
* <p>Integer parameters.</p>
*/
inline void SetIntegerParameters(const Aws::Vector<IntegerParameter>& value) { m_integerParametersHasBeenSet = true; m_integerParameters = value; }
/**
* <p>Integer parameters.</p>
*/
inline void SetIntegerParameters(Aws::Vector<IntegerParameter>&& value) { m_integerParametersHasBeenSet = true; m_integerParameters = std::move(value); }
/**
* <p>Integer parameters.</p>
*/
inline Parameters& WithIntegerParameters(const Aws::Vector<IntegerParameter>& value) { SetIntegerParameters(value); return *this;}
/**
* <p>Integer parameters.</p>
*/
inline Parameters& WithIntegerParameters(Aws::Vector<IntegerParameter>&& value) { SetIntegerParameters(std::move(value)); return *this;}
/**
* <p>Integer parameters.</p>
*/
inline Parameters& AddIntegerParameters(const IntegerParameter& value) { m_integerParametersHasBeenSet = true; m_integerParameters.push_back(value); return *this; }
/**
* <p>Integer parameters.</p>
*/
inline Parameters& AddIntegerParameters(IntegerParameter&& value) { m_integerParametersHasBeenSet = true; m_integerParameters.push_back(std::move(value)); return *this; }
/**
* <p>Decimal parameters.</p>
*/
inline const Aws::Vector<DecimalParameter>& GetDecimalParameters() const{ return m_decimalParameters; }
/**
* <p>Decimal parameters.</p>
*/
inline bool DecimalParametersHasBeenSet() const { return m_decimalParametersHasBeenSet; }
/**
* <p>Decimal parameters.</p>
*/
inline void SetDecimalParameters(const Aws::Vector<DecimalParameter>& value) { m_decimalParametersHasBeenSet = true; m_decimalParameters = value; }
/**
* <p>Decimal parameters.</p>
*/
inline void SetDecimalParameters(Aws::Vector<DecimalParameter>&& value) { m_decimalParametersHasBeenSet = true; m_decimalParameters = std::move(value); }
/**
* <p>Decimal parameters.</p>
*/
inline Parameters& WithDecimalParameters(const Aws::Vector<DecimalParameter>& value) { SetDecimalParameters(value); return *this;}
/**
* <p>Decimal parameters.</p>
*/
inline Parameters& WithDecimalParameters(Aws::Vector<DecimalParameter>&& value) { SetDecimalParameters(std::move(value)); return *this;}
/**
* <p>Decimal parameters.</p>
*/
inline Parameters& AddDecimalParameters(const DecimalParameter& value) { m_decimalParametersHasBeenSet = true; m_decimalParameters.push_back(value); return *this; }
/**
* <p>Decimal parameters.</p>
*/
inline Parameters& AddDecimalParameters(DecimalParameter&& value) { m_decimalParametersHasBeenSet = true; m_decimalParameters.push_back(std::move(value)); return *this; }
/**
* <p>Date-time parameters.</p>
*/
inline const Aws::Vector<DateTimeParameter>& GetDateTimeParameters() const{ return m_dateTimeParameters; }
/**
* <p>Date-time parameters.</p>
*/
inline bool DateTimeParametersHasBeenSet() const { return m_dateTimeParametersHasBeenSet; }
/**
* <p>Date-time parameters.</p>
*/
inline void SetDateTimeParameters(const Aws::Vector<DateTimeParameter>& value) { m_dateTimeParametersHasBeenSet = true; m_dateTimeParameters = value; }
/**
* <p>Date-time parameters.</p>
*/
inline void SetDateTimeParameters(Aws::Vector<DateTimeParameter>&& value) { m_dateTimeParametersHasBeenSet = true; m_dateTimeParameters = std::move(value); }
/**
* <p>Date-time parameters.</p>
*/
inline Parameters& WithDateTimeParameters(const Aws::Vector<DateTimeParameter>& value) { SetDateTimeParameters(value); return *this;}
/**
* <p>Date-time parameters.</p>
*/
inline Parameters& WithDateTimeParameters(Aws::Vector<DateTimeParameter>&& value) { SetDateTimeParameters(std::move(value)); return *this;}
/**
* <p>Date-time parameters.</p>
*/
inline Parameters& AddDateTimeParameters(const DateTimeParameter& value) { m_dateTimeParametersHasBeenSet = true; m_dateTimeParameters.push_back(value); return *this; }
/**
* <p>Date-time parameters.</p>
*/
inline Parameters& AddDateTimeParameters(DateTimeParameter&& value) { m_dateTimeParametersHasBeenSet = true; m_dateTimeParameters.push_back(std::move(value)); return *this; }
private:
Aws::Vector<StringParameter> m_stringParameters;
bool m_stringParametersHasBeenSet;
Aws::Vector<IntegerParameter> m_integerParameters;
bool m_integerParametersHasBeenSet;
Aws::Vector<DecimalParameter> m_decimalParameters;
bool m_decimalParametersHasBeenSet;
Aws::Vector<DateTimeParameter> m_dateTimeParameters;
bool m_dateTimeParametersHasBeenSet;
};
} // namespace Model
} // namespace QuickSight
} // namespace Aws