163 lines
7.1 KiB
C
163 lines
7.1 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/lightsail/Lightsail_EXPORTS.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
namespace Utils
|
|||
|
|
{
|
|||
|
|
namespace Json
|
|||
|
|
{
|
|||
|
|
class JsonValue;
|
|||
|
|
class JsonView;
|
|||
|
|
} // namespace Json
|
|||
|
|
} // namespace Utils
|
|||
|
|
namespace Lightsail
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Describes the query string parameters that an Amazon Lightsail content
|
|||
|
|
* delivery network (CDN) distribution to bases caching on.</p> <p>For the query
|
|||
|
|
* strings that you specify, your distribution caches separate versions of the
|
|||
|
|
* specified content based on the query string values in viewer
|
|||
|
|
* requests.</p><p><h3>See Also:</h3> <a
|
|||
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/QueryStringObject">AWS
|
|||
|
|
* API Reference</a></p>
|
|||
|
|
*/
|
|||
|
|
class AWS_LIGHTSAIL_API QueryStringObject
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
QueryStringObject();
|
|||
|
|
QueryStringObject(Aws::Utils::Json::JsonView jsonValue);
|
|||
|
|
QueryStringObject& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|||
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Indicates whether the distribution forwards and caches based on query
|
|||
|
|
* strings.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool GetOption() const{ return m_option; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Indicates whether the distribution forwards and caches based on query
|
|||
|
|
* strings.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool OptionHasBeenSet() const { return m_optionHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Indicates whether the distribution forwards and caches based on query
|
|||
|
|
* strings.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetOption(bool value) { m_optionHasBeenSet = true; m_option = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Indicates whether the distribution forwards and caches based on query
|
|||
|
|
* strings.</p>
|
|||
|
|
*/
|
|||
|
|
inline QueryStringObject& WithOption(bool value) { SetOption(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The specific query strings that the distribution forwards to the origin.</p>
|
|||
|
|
* <p>Your distribution will cache content based on the specified query
|
|||
|
|
* strings.</p> <p>If the <code>option</code> parameter is true, then your
|
|||
|
|
* distribution forwards all query strings, regardless of what you specify using
|
|||
|
|
* the <code>queryStringsAllowList</code> parameter.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::Vector<Aws::String>& GetQueryStringsAllowList() const{ return m_queryStringsAllowList; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The specific query strings that the distribution forwards to the origin.</p>
|
|||
|
|
* <p>Your distribution will cache content based on the specified query
|
|||
|
|
* strings.</p> <p>If the <code>option</code> parameter is true, then your
|
|||
|
|
* distribution forwards all query strings, regardless of what you specify using
|
|||
|
|
* the <code>queryStringsAllowList</code> parameter.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool QueryStringsAllowListHasBeenSet() const { return m_queryStringsAllowListHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The specific query strings that the distribution forwards to the origin.</p>
|
|||
|
|
* <p>Your distribution will cache content based on the specified query
|
|||
|
|
* strings.</p> <p>If the <code>option</code> parameter is true, then your
|
|||
|
|
* distribution forwards all query strings, regardless of what you specify using
|
|||
|
|
* the <code>queryStringsAllowList</code> parameter.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetQueryStringsAllowList(const Aws::Vector<Aws::String>& value) { m_queryStringsAllowListHasBeenSet = true; m_queryStringsAllowList = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The specific query strings that the distribution forwards to the origin.</p>
|
|||
|
|
* <p>Your distribution will cache content based on the specified query
|
|||
|
|
* strings.</p> <p>If the <code>option</code> parameter is true, then your
|
|||
|
|
* distribution forwards all query strings, regardless of what you specify using
|
|||
|
|
* the <code>queryStringsAllowList</code> parameter.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetQueryStringsAllowList(Aws::Vector<Aws::String>&& value) { m_queryStringsAllowListHasBeenSet = true; m_queryStringsAllowList = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The specific query strings that the distribution forwards to the origin.</p>
|
|||
|
|
* <p>Your distribution will cache content based on the specified query
|
|||
|
|
* strings.</p> <p>If the <code>option</code> parameter is true, then your
|
|||
|
|
* distribution forwards all query strings, regardless of what you specify using
|
|||
|
|
* the <code>queryStringsAllowList</code> parameter.</p>
|
|||
|
|
*/
|
|||
|
|
inline QueryStringObject& WithQueryStringsAllowList(const Aws::Vector<Aws::String>& value) { SetQueryStringsAllowList(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The specific query strings that the distribution forwards to the origin.</p>
|
|||
|
|
* <p>Your distribution will cache content based on the specified query
|
|||
|
|
* strings.</p> <p>If the <code>option</code> parameter is true, then your
|
|||
|
|
* distribution forwards all query strings, regardless of what you specify using
|
|||
|
|
* the <code>queryStringsAllowList</code> parameter.</p>
|
|||
|
|
*/
|
|||
|
|
inline QueryStringObject& WithQueryStringsAllowList(Aws::Vector<Aws::String>&& value) { SetQueryStringsAllowList(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The specific query strings that the distribution forwards to the origin.</p>
|
|||
|
|
* <p>Your distribution will cache content based on the specified query
|
|||
|
|
* strings.</p> <p>If the <code>option</code> parameter is true, then your
|
|||
|
|
* distribution forwards all query strings, regardless of what you specify using
|
|||
|
|
* the <code>queryStringsAllowList</code> parameter.</p>
|
|||
|
|
*/
|
|||
|
|
inline QueryStringObject& AddQueryStringsAllowList(const Aws::String& value) { m_queryStringsAllowListHasBeenSet = true; m_queryStringsAllowList.push_back(value); return *this; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The specific query strings that the distribution forwards to the origin.</p>
|
|||
|
|
* <p>Your distribution will cache content based on the specified query
|
|||
|
|
* strings.</p> <p>If the <code>option</code> parameter is true, then your
|
|||
|
|
* distribution forwards all query strings, regardless of what you specify using
|
|||
|
|
* the <code>queryStringsAllowList</code> parameter.</p>
|
|||
|
|
*/
|
|||
|
|
inline QueryStringObject& AddQueryStringsAllowList(Aws::String&& value) { m_queryStringsAllowListHasBeenSet = true; m_queryStringsAllowList.push_back(std::move(value)); return *this; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The specific query strings that the distribution forwards to the origin.</p>
|
|||
|
|
* <p>Your distribution will cache content based on the specified query
|
|||
|
|
* strings.</p> <p>If the <code>option</code> parameter is true, then your
|
|||
|
|
* distribution forwards all query strings, regardless of what you specify using
|
|||
|
|
* the <code>queryStringsAllowList</code> parameter.</p>
|
|||
|
|
*/
|
|||
|
|
inline QueryStringObject& AddQueryStringsAllowList(const char* value) { m_queryStringsAllowListHasBeenSet = true; m_queryStringsAllowList.push_back(value); return *this; }
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
bool m_option;
|
|||
|
|
bool m_optionHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::Vector<Aws::String> m_queryStringsAllowList;
|
|||
|
|
bool m_queryStringsAllowListHasBeenSet;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace Lightsail
|
|||
|
|
} // namespace Aws
|