This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-apigateway/include/aws/apigateway/model/GetApiKeysResult.h

163 lines
5.4 KiB
C
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/apigateway/APIGateway_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/apigateway/model/ApiKey.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace APIGateway
{
namespace Model
{
/**
* <p>Represents a collection of API keys as represented by an <a>ApiKeys</a>
* resource.</p> <div class="seeAlso"> <a
* href="https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-api-keys.html">Use
* API Keys</a> </div><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/apigateway-2015-07-09/ApiKeys">AWS
* API Reference</a></p>
*/
class AWS_APIGATEWAY_API GetApiKeysResult
{
public:
GetApiKeysResult();
GetApiKeysResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetApiKeysResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A list of warning messages logged during the import of API keys when the
* <code>failOnWarnings</code> option is set to true.</p>
*/
inline const Aws::Vector<Aws::String>& GetWarnings() const{ return m_warnings; }
/**
* <p>A list of warning messages logged during the import of API keys when the
* <code>failOnWarnings</code> option is set to true.</p>
*/
inline void SetWarnings(const Aws::Vector<Aws::String>& value) { m_warnings = value; }
/**
* <p>A list of warning messages logged during the import of API keys when the
* <code>failOnWarnings</code> option is set to true.</p>
*/
inline void SetWarnings(Aws::Vector<Aws::String>&& value) { m_warnings = std::move(value); }
/**
* <p>A list of warning messages logged during the import of API keys when the
* <code>failOnWarnings</code> option is set to true.</p>
*/
inline GetApiKeysResult& WithWarnings(const Aws::Vector<Aws::String>& value) { SetWarnings(value); return *this;}
/**
* <p>A list of warning messages logged during the import of API keys when the
* <code>failOnWarnings</code> option is set to true.</p>
*/
inline GetApiKeysResult& WithWarnings(Aws::Vector<Aws::String>&& value) { SetWarnings(std::move(value)); return *this;}
/**
* <p>A list of warning messages logged during the import of API keys when the
* <code>failOnWarnings</code> option is set to true.</p>
*/
inline GetApiKeysResult& AddWarnings(const Aws::String& value) { m_warnings.push_back(value); return *this; }
/**
* <p>A list of warning messages logged during the import of API keys when the
* <code>failOnWarnings</code> option is set to true.</p>
*/
inline GetApiKeysResult& AddWarnings(Aws::String&& value) { m_warnings.push_back(std::move(value)); return *this; }
/**
* <p>A list of warning messages logged during the import of API keys when the
* <code>failOnWarnings</code> option is set to true.</p>
*/
inline GetApiKeysResult& AddWarnings(const char* value) { m_warnings.push_back(value); return *this; }
inline const Aws::String& GetPosition() const{ return m_position; }
inline void SetPosition(const Aws::String& value) { m_position = value; }
inline void SetPosition(Aws::String&& value) { m_position = std::move(value); }
inline void SetPosition(const char* value) { m_position.assign(value); }
inline GetApiKeysResult& WithPosition(const Aws::String& value) { SetPosition(value); return *this;}
inline GetApiKeysResult& WithPosition(Aws::String&& value) { SetPosition(std::move(value)); return *this;}
inline GetApiKeysResult& WithPosition(const char* value) { SetPosition(value); return *this;}
/**
* <p>The current page of elements from this collection.</p>
*/
inline const Aws::Vector<ApiKey>& GetItems() const{ return m_items; }
/**
* <p>The current page of elements from this collection.</p>
*/
inline void SetItems(const Aws::Vector<ApiKey>& value) { m_items = value; }
/**
* <p>The current page of elements from this collection.</p>
*/
inline void SetItems(Aws::Vector<ApiKey>&& value) { m_items = std::move(value); }
/**
* <p>The current page of elements from this collection.</p>
*/
inline GetApiKeysResult& WithItems(const Aws::Vector<ApiKey>& value) { SetItems(value); return *this;}
/**
* <p>The current page of elements from this collection.</p>
*/
inline GetApiKeysResult& WithItems(Aws::Vector<ApiKey>&& value) { SetItems(std::move(value)); return *this;}
/**
* <p>The current page of elements from this collection.</p>
*/
inline GetApiKeysResult& AddItems(const ApiKey& value) { m_items.push_back(value); return *this; }
/**
* <p>The current page of elements from this collection.</p>
*/
inline GetApiKeysResult& AddItems(ApiKey&& value) { m_items.push_back(std::move(value)); return *this; }
private:
Aws::Vector<Aws::String> m_warnings;
Aws::String m_position;
Aws::Vector<ApiKey> m_items;
};
} // namespace Model
} // namespace APIGateway
} // namespace Aws