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,173 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/discovery/ApplicationDiscoveryService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/discovery/model/AgentInfo.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ApplicationDiscoveryService
{
namespace Model
{
class AWS_APPLICATIONDISCOVERYSERVICE_API DescribeAgentsResult
{
public:
DescribeAgentsResult();
DescribeAgentsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeAgentsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Lists agents or the Connector by ID or lists all agents/Connectors associated
* with your user account if you did not specify an agent/Connector ID. The output
* includes agent/Connector IDs, IP addresses, media access control (MAC)
* addresses, agent/Connector health, host name where the agent/Connector resides,
* and the version number of each agent/Connector.</p>
*/
inline const Aws::Vector<AgentInfo>& GetAgentsInfo() const{ return m_agentsInfo; }
/**
* <p>Lists agents or the Connector by ID or lists all agents/Connectors associated
* with your user account if you did not specify an agent/Connector ID. The output
* includes agent/Connector IDs, IP addresses, media access control (MAC)
* addresses, agent/Connector health, host name where the agent/Connector resides,
* and the version number of each agent/Connector.</p>
*/
inline void SetAgentsInfo(const Aws::Vector<AgentInfo>& value) { m_agentsInfo = value; }
/**
* <p>Lists agents or the Connector by ID or lists all agents/Connectors associated
* with your user account if you did not specify an agent/Connector ID. The output
* includes agent/Connector IDs, IP addresses, media access control (MAC)
* addresses, agent/Connector health, host name where the agent/Connector resides,
* and the version number of each agent/Connector.</p>
*/
inline void SetAgentsInfo(Aws::Vector<AgentInfo>&& value) { m_agentsInfo = std::move(value); }
/**
* <p>Lists agents or the Connector by ID or lists all agents/Connectors associated
* with your user account if you did not specify an agent/Connector ID. The output
* includes agent/Connector IDs, IP addresses, media access control (MAC)
* addresses, agent/Connector health, host name where the agent/Connector resides,
* and the version number of each agent/Connector.</p>
*/
inline DescribeAgentsResult& WithAgentsInfo(const Aws::Vector<AgentInfo>& value) { SetAgentsInfo(value); return *this;}
/**
* <p>Lists agents or the Connector by ID or lists all agents/Connectors associated
* with your user account if you did not specify an agent/Connector ID. The output
* includes agent/Connector IDs, IP addresses, media access control (MAC)
* addresses, agent/Connector health, host name where the agent/Connector resides,
* and the version number of each agent/Connector.</p>
*/
inline DescribeAgentsResult& WithAgentsInfo(Aws::Vector<AgentInfo>&& value) { SetAgentsInfo(std::move(value)); return *this;}
/**
* <p>Lists agents or the Connector by ID or lists all agents/Connectors associated
* with your user account if you did not specify an agent/Connector ID. The output
* includes agent/Connector IDs, IP addresses, media access control (MAC)
* addresses, agent/Connector health, host name where the agent/Connector resides,
* and the version number of each agent/Connector.</p>
*/
inline DescribeAgentsResult& AddAgentsInfo(const AgentInfo& value) { m_agentsInfo.push_back(value); return *this; }
/**
* <p>Lists agents or the Connector by ID or lists all agents/Connectors associated
* with your user account if you did not specify an agent/Connector ID. The output
* includes agent/Connector IDs, IP addresses, media access control (MAC)
* addresses, agent/Connector health, host name where the agent/Connector resides,
* and the version number of each agent/Connector.</p>
*/
inline DescribeAgentsResult& AddAgentsInfo(AgentInfo&& value) { m_agentsInfo.push_back(std::move(value)); return *this; }
/**
* <p>Token to retrieve the next set of results. For example, if you specified 100
* IDs for <code>DescribeAgentsRequest$agentIds</code> but set
* <code>DescribeAgentsRequest$maxResults</code> to 10, you received a set of 10
* results along with this token. Use this token in the next query to retrieve the
* next set of 10.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>Token to retrieve the next set of results. For example, if you specified 100
* IDs for <code>DescribeAgentsRequest$agentIds</code> but set
* <code>DescribeAgentsRequest$maxResults</code> to 10, you received a set of 10
* results along with this token. Use this token in the next query to retrieve the
* next set of 10.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>Token to retrieve the next set of results. For example, if you specified 100
* IDs for <code>DescribeAgentsRequest$agentIds</code> but set
* <code>DescribeAgentsRequest$maxResults</code> to 10, you received a set of 10
* results along with this token. Use this token in the next query to retrieve the
* next set of 10.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>Token to retrieve the next set of results. For example, if you specified 100
* IDs for <code>DescribeAgentsRequest$agentIds</code> but set
* <code>DescribeAgentsRequest$maxResults</code> to 10, you received a set of 10
* results along with this token. Use this token in the next query to retrieve the
* next set of 10.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>Token to retrieve the next set of results. For example, if you specified 100
* IDs for <code>DescribeAgentsRequest$agentIds</code> but set
* <code>DescribeAgentsRequest$maxResults</code> to 10, you received a set of 10
* results along with this token. Use this token in the next query to retrieve the
* next set of 10.</p>
*/
inline DescribeAgentsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>Token to retrieve the next set of results. For example, if you specified 100
* IDs for <code>DescribeAgentsRequest$agentIds</code> but set
* <code>DescribeAgentsRequest$maxResults</code> to 10, you received a set of 10
* results along with this token. Use this token in the next query to retrieve the
* next set of 10.</p>
*/
inline DescribeAgentsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>Token to retrieve the next set of results. For example, if you specified 100
* IDs for <code>DescribeAgentsRequest$agentIds</code> but set
* <code>DescribeAgentsRequest$maxResults</code> to 10, you received a set of 10
* results along with this token. Use this token in the next query to retrieve the
* next set of 10.</p>
*/
inline DescribeAgentsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<AgentInfo> m_agentsInfo;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace ApplicationDiscoveryService
} // namespace Aws