178 lines
8.3 KiB
C++
178 lines
8.3 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/lightsail/LightsailRequest.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Lightsail
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
*/
|
|
class AWS_LIGHTSAIL_API GetDistributionsRequest : public LightsailRequest
|
|
{
|
|
public:
|
|
GetDistributionsRequest();
|
|
|
|
// Service request name is the Operation name which will send this request out,
|
|
// each operation should has unique request name, so that we can get operation's name from this request.
|
|
// Note: this is not true for response, multiple operations may have the same response name,
|
|
// so we can not get operation's name from response.
|
|
inline virtual const char* GetServiceRequestName() const override { return "GetDistributions"; }
|
|
|
|
Aws::String SerializePayload() const override;
|
|
|
|
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
|
|
|
|
|
/**
|
|
* <p>The name of the distribution for which to return information.</p> <p>Use the
|
|
* <code>GetDistributions</code> action to get a list of distribution names that
|
|
* you can specify.</p> <p>When omitted, the response includes all of your
|
|
* distributions in the AWS Region where the request is made.</p>
|
|
*/
|
|
inline const Aws::String& GetDistributionName() const{ return m_distributionName; }
|
|
|
|
/**
|
|
* <p>The name of the distribution for which to return information.</p> <p>Use the
|
|
* <code>GetDistributions</code> action to get a list of distribution names that
|
|
* you can specify.</p> <p>When omitted, the response includes all of your
|
|
* distributions in the AWS Region where the request is made.</p>
|
|
*/
|
|
inline bool DistributionNameHasBeenSet() const { return m_distributionNameHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The name of the distribution for which to return information.</p> <p>Use the
|
|
* <code>GetDistributions</code> action to get a list of distribution names that
|
|
* you can specify.</p> <p>When omitted, the response includes all of your
|
|
* distributions in the AWS Region where the request is made.</p>
|
|
*/
|
|
inline void SetDistributionName(const Aws::String& value) { m_distributionNameHasBeenSet = true; m_distributionName = value; }
|
|
|
|
/**
|
|
* <p>The name of the distribution for which to return information.</p> <p>Use the
|
|
* <code>GetDistributions</code> action to get a list of distribution names that
|
|
* you can specify.</p> <p>When omitted, the response includes all of your
|
|
* distributions in the AWS Region where the request is made.</p>
|
|
*/
|
|
inline void SetDistributionName(Aws::String&& value) { m_distributionNameHasBeenSet = true; m_distributionName = std::move(value); }
|
|
|
|
/**
|
|
* <p>The name of the distribution for which to return information.</p> <p>Use the
|
|
* <code>GetDistributions</code> action to get a list of distribution names that
|
|
* you can specify.</p> <p>When omitted, the response includes all of your
|
|
* distributions in the AWS Region where the request is made.</p>
|
|
*/
|
|
inline void SetDistributionName(const char* value) { m_distributionNameHasBeenSet = true; m_distributionName.assign(value); }
|
|
|
|
/**
|
|
* <p>The name of the distribution for which to return information.</p> <p>Use the
|
|
* <code>GetDistributions</code> action to get a list of distribution names that
|
|
* you can specify.</p> <p>When omitted, the response includes all of your
|
|
* distributions in the AWS Region where the request is made.</p>
|
|
*/
|
|
inline GetDistributionsRequest& WithDistributionName(const Aws::String& value) { SetDistributionName(value); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the distribution for which to return information.</p> <p>Use the
|
|
* <code>GetDistributions</code> action to get a list of distribution names that
|
|
* you can specify.</p> <p>When omitted, the response includes all of your
|
|
* distributions in the AWS Region where the request is made.</p>
|
|
*/
|
|
inline GetDistributionsRequest& WithDistributionName(Aws::String&& value) { SetDistributionName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the distribution for which to return information.</p> <p>Use the
|
|
* <code>GetDistributions</code> action to get a list of distribution names that
|
|
* you can specify.</p> <p>When omitted, the response includes all of your
|
|
* distributions in the AWS Region where the request is made.</p>
|
|
*/
|
|
inline GetDistributionsRequest& WithDistributionName(const char* value) { SetDistributionName(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The token to advance to the next page of results from your request.</p> <p>To
|
|
* get a page token, perform an initial <code>GetDistributions</code> request. If
|
|
* your results are paginated, the response will return a next page token that you
|
|
* can specify as the page token in a subsequent request.</p>
|
|
*/
|
|
inline const Aws::String& GetPageToken() const{ return m_pageToken; }
|
|
|
|
/**
|
|
* <p>The token to advance to the next page of results from your request.</p> <p>To
|
|
* get a page token, perform an initial <code>GetDistributions</code> request. If
|
|
* your results are paginated, the response will return a next page token that you
|
|
* can specify as the page token in a subsequent request.</p>
|
|
*/
|
|
inline bool PageTokenHasBeenSet() const { return m_pageTokenHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The token to advance to the next page of results from your request.</p> <p>To
|
|
* get a page token, perform an initial <code>GetDistributions</code> request. If
|
|
* your results are paginated, the response will return a next page token that you
|
|
* can specify as the page token in a subsequent request.</p>
|
|
*/
|
|
inline void SetPageToken(const Aws::String& value) { m_pageTokenHasBeenSet = true; m_pageToken = value; }
|
|
|
|
/**
|
|
* <p>The token to advance to the next page of results from your request.</p> <p>To
|
|
* get a page token, perform an initial <code>GetDistributions</code> request. If
|
|
* your results are paginated, the response will return a next page token that you
|
|
* can specify as the page token in a subsequent request.</p>
|
|
*/
|
|
inline void SetPageToken(Aws::String&& value) { m_pageTokenHasBeenSet = true; m_pageToken = std::move(value); }
|
|
|
|
/**
|
|
* <p>The token to advance to the next page of results from your request.</p> <p>To
|
|
* get a page token, perform an initial <code>GetDistributions</code> request. If
|
|
* your results are paginated, the response will return a next page token that you
|
|
* can specify as the page token in a subsequent request.</p>
|
|
*/
|
|
inline void SetPageToken(const char* value) { m_pageTokenHasBeenSet = true; m_pageToken.assign(value); }
|
|
|
|
/**
|
|
* <p>The token to advance to the next page of results from your request.</p> <p>To
|
|
* get a page token, perform an initial <code>GetDistributions</code> request. If
|
|
* your results are paginated, the response will return a next page token that you
|
|
* can specify as the page token in a subsequent request.</p>
|
|
*/
|
|
inline GetDistributionsRequest& WithPageToken(const Aws::String& value) { SetPageToken(value); return *this;}
|
|
|
|
/**
|
|
* <p>The token to advance to the next page of results from your request.</p> <p>To
|
|
* get a page token, perform an initial <code>GetDistributions</code> request. If
|
|
* your results are paginated, the response will return a next page token that you
|
|
* can specify as the page token in a subsequent request.</p>
|
|
*/
|
|
inline GetDistributionsRequest& WithPageToken(Aws::String&& value) { SetPageToken(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The token to advance to the next page of results from your request.</p> <p>To
|
|
* get a page token, perform an initial <code>GetDistributions</code> request. If
|
|
* your results are paginated, the response will return a next page token that you
|
|
* can specify as the page token in a subsequent request.</p>
|
|
*/
|
|
inline GetDistributionsRequest& WithPageToken(const char* value) { SetPageToken(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_distributionName;
|
|
bool m_distributionNameHasBeenSet;
|
|
|
|
Aws::String m_pageToken;
|
|
bool m_pageTokenHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace Lightsail
|
|
} // namespace Aws
|