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,208 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/groundstation/GroundStation_EXPORTS.h>
#include <aws/groundstation/model/ConfigDetails.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/groundstation/model/ConfigCapabilityType.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace GroundStation
{
namespace Model
{
/**
* <p>Dataflow details for the source side.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/groundstation-2019-05-23/Source">AWS
* API Reference</a></p>
*/
class AWS_GROUNDSTATION_API Source
{
public:
Source();
Source(Aws::Utils::Json::JsonView jsonValue);
Source& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Additional details for a <code>Config</code>, if type is dataflow endpoint or
* antenna demod decode.</p>
*/
inline const ConfigDetails& GetConfigDetails() const{ return m_configDetails; }
/**
* <p>Additional details for a <code>Config</code>, if type is dataflow endpoint or
* antenna demod decode.</p>
*/
inline bool ConfigDetailsHasBeenSet() const { return m_configDetailsHasBeenSet; }
/**
* <p>Additional details for a <code>Config</code>, if type is dataflow endpoint or
* antenna demod decode.</p>
*/
inline void SetConfigDetails(const ConfigDetails& value) { m_configDetailsHasBeenSet = true; m_configDetails = value; }
/**
* <p>Additional details for a <code>Config</code>, if type is dataflow endpoint or
* antenna demod decode.</p>
*/
inline void SetConfigDetails(ConfigDetails&& value) { m_configDetailsHasBeenSet = true; m_configDetails = std::move(value); }
/**
* <p>Additional details for a <code>Config</code>, if type is dataflow endpoint or
* antenna demod decode.</p>
*/
inline Source& WithConfigDetails(const ConfigDetails& value) { SetConfigDetails(value); return *this;}
/**
* <p>Additional details for a <code>Config</code>, if type is dataflow endpoint or
* antenna demod decode.</p>
*/
inline Source& WithConfigDetails(ConfigDetails&& value) { SetConfigDetails(std::move(value)); return *this;}
/**
* <p>UUID of a <code>Config</code>.</p>
*/
inline const Aws::String& GetConfigId() const{ return m_configId; }
/**
* <p>UUID of a <code>Config</code>.</p>
*/
inline bool ConfigIdHasBeenSet() const { return m_configIdHasBeenSet; }
/**
* <p>UUID of a <code>Config</code>.</p>
*/
inline void SetConfigId(const Aws::String& value) { m_configIdHasBeenSet = true; m_configId = value; }
/**
* <p>UUID of a <code>Config</code>.</p>
*/
inline void SetConfigId(Aws::String&& value) { m_configIdHasBeenSet = true; m_configId = std::move(value); }
/**
* <p>UUID of a <code>Config</code>.</p>
*/
inline void SetConfigId(const char* value) { m_configIdHasBeenSet = true; m_configId.assign(value); }
/**
* <p>UUID of a <code>Config</code>.</p>
*/
inline Source& WithConfigId(const Aws::String& value) { SetConfigId(value); return *this;}
/**
* <p>UUID of a <code>Config</code>.</p>
*/
inline Source& WithConfigId(Aws::String&& value) { SetConfigId(std::move(value)); return *this;}
/**
* <p>UUID of a <code>Config</code>.</p>
*/
inline Source& WithConfigId(const char* value) { SetConfigId(value); return *this;}
/**
* <p>Type of a <code>Config</code>.</p>
*/
inline const ConfigCapabilityType& GetConfigType() const{ return m_configType; }
/**
* <p>Type of a <code>Config</code>.</p>
*/
inline bool ConfigTypeHasBeenSet() const { return m_configTypeHasBeenSet; }
/**
* <p>Type of a <code>Config</code>.</p>
*/
inline void SetConfigType(const ConfigCapabilityType& value) { m_configTypeHasBeenSet = true; m_configType = value; }
/**
* <p>Type of a <code>Config</code>.</p>
*/
inline void SetConfigType(ConfigCapabilityType&& value) { m_configTypeHasBeenSet = true; m_configType = std::move(value); }
/**
* <p>Type of a <code>Config</code>.</p>
*/
inline Source& WithConfigType(const ConfigCapabilityType& value) { SetConfigType(value); return *this;}
/**
* <p>Type of a <code>Config</code>.</p>
*/
inline Source& WithConfigType(ConfigCapabilityType&& value) { SetConfigType(std::move(value)); return *this;}
/**
* <p>Region of a dataflow source.</p>
*/
inline const Aws::String& GetDataflowSourceRegion() const{ return m_dataflowSourceRegion; }
/**
* <p>Region of a dataflow source.</p>
*/
inline bool DataflowSourceRegionHasBeenSet() const { return m_dataflowSourceRegionHasBeenSet; }
/**
* <p>Region of a dataflow source.</p>
*/
inline void SetDataflowSourceRegion(const Aws::String& value) { m_dataflowSourceRegionHasBeenSet = true; m_dataflowSourceRegion = value; }
/**
* <p>Region of a dataflow source.</p>
*/
inline void SetDataflowSourceRegion(Aws::String&& value) { m_dataflowSourceRegionHasBeenSet = true; m_dataflowSourceRegion = std::move(value); }
/**
* <p>Region of a dataflow source.</p>
*/
inline void SetDataflowSourceRegion(const char* value) { m_dataflowSourceRegionHasBeenSet = true; m_dataflowSourceRegion.assign(value); }
/**
* <p>Region of a dataflow source.</p>
*/
inline Source& WithDataflowSourceRegion(const Aws::String& value) { SetDataflowSourceRegion(value); return *this;}
/**
* <p>Region of a dataflow source.</p>
*/
inline Source& WithDataflowSourceRegion(Aws::String&& value) { SetDataflowSourceRegion(std::move(value)); return *this;}
/**
* <p>Region of a dataflow source.</p>
*/
inline Source& WithDataflowSourceRegion(const char* value) { SetDataflowSourceRegion(value); return *this;}
private:
ConfigDetails m_configDetails;
bool m_configDetailsHasBeenSet;
Aws::String m_configId;
bool m_configIdHasBeenSet;
ConfigCapabilityType m_configType;
bool m_configTypeHasBeenSet;
Aws::String m_dataflowSourceRegion;
bool m_dataflowSourceRegionHasBeenSet;
};
} // namespace Model
} // namespace GroundStation
} // namespace Aws