/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Lightsail { namespace Model { class GetInstanceSnapshotsResult { public: AWS_LIGHTSAIL_API GetInstanceSnapshotsResult(); AWS_LIGHTSAIL_API GetInstanceSnapshotsResult(const Aws::AmazonWebServiceResult& result); AWS_LIGHTSAIL_API GetInstanceSnapshotsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

An array of key-value pairs containing information about the results of your * get instance snapshots request.

*/ inline const Aws::Vector& GetInstanceSnapshots() const{ return m_instanceSnapshots; } /** *

An array of key-value pairs containing information about the results of your * get instance snapshots request.

*/ inline void SetInstanceSnapshots(const Aws::Vector& value) { m_instanceSnapshots = value; } /** *

An array of key-value pairs containing information about the results of your * get instance snapshots request.

*/ inline void SetInstanceSnapshots(Aws::Vector&& value) { m_instanceSnapshots = std::move(value); } /** *

An array of key-value pairs containing information about the results of your * get instance snapshots request.

*/ inline GetInstanceSnapshotsResult& WithInstanceSnapshots(const Aws::Vector& value) { SetInstanceSnapshots(value); return *this;} /** *

An array of key-value pairs containing information about the results of your * get instance snapshots request.

*/ inline GetInstanceSnapshotsResult& WithInstanceSnapshots(Aws::Vector&& value) { SetInstanceSnapshots(std::move(value)); return *this;} /** *

An array of key-value pairs containing information about the results of your * get instance snapshots request.

*/ inline GetInstanceSnapshotsResult& AddInstanceSnapshots(const InstanceSnapshot& value) { m_instanceSnapshots.push_back(value); return *this; } /** *

An array of key-value pairs containing information about the results of your * get instance snapshots request.

*/ inline GetInstanceSnapshotsResult& AddInstanceSnapshots(InstanceSnapshot&& value) { m_instanceSnapshots.push_back(std::move(value)); return *this; } /** *

The token to advance to the next page of results from your request.

A * next page token is not returned if there are no more results to display.

*

To get the next page of results, perform another * GetInstanceSnapshots request and specify the next page token using * the pageToken parameter.

*/ inline const Aws::String& GetNextPageToken() const{ return m_nextPageToken; } /** *

The token to advance to the next page of results from your request.

A * next page token is not returned if there are no more results to display.

*

To get the next page of results, perform another * GetInstanceSnapshots request and specify the next page token using * the pageToken parameter.

*/ inline void SetNextPageToken(const Aws::String& value) { m_nextPageToken = value; } /** *

The token to advance to the next page of results from your request.

A * next page token is not returned if there are no more results to display.

*

To get the next page of results, perform another * GetInstanceSnapshots request and specify the next page token using * the pageToken parameter.

*/ inline void SetNextPageToken(Aws::String&& value) { m_nextPageToken = std::move(value); } /** *

The token to advance to the next page of results from your request.

A * next page token is not returned if there are no more results to display.

*

To get the next page of results, perform another * GetInstanceSnapshots request and specify the next page token using * the pageToken parameter.

*/ inline void SetNextPageToken(const char* value) { m_nextPageToken.assign(value); } /** *

The token to advance to the next page of results from your request.

A * next page token is not returned if there are no more results to display.

*

To get the next page of results, perform another * GetInstanceSnapshots request and specify the next page token using * the pageToken parameter.

*/ inline GetInstanceSnapshotsResult& WithNextPageToken(const Aws::String& value) { SetNextPageToken(value); return *this;} /** *

The token to advance to the next page of results from your request.

A * next page token is not returned if there are no more results to display.

*

To get the next page of results, perform another * GetInstanceSnapshots request and specify the next page token using * the pageToken parameter.

*/ inline GetInstanceSnapshotsResult& WithNextPageToken(Aws::String&& value) { SetNextPageToken(std::move(value)); return *this;} /** *

The token to advance to the next page of results from your request.

A * next page token is not returned if there are no more results to display.

*

To get the next page of results, perform another * GetInstanceSnapshots request and specify the next page token using * the pageToken parameter.

*/ inline GetInstanceSnapshotsResult& WithNextPageToken(const char* value) { SetNextPageToken(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetInstanceSnapshotsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetInstanceSnapshotsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetInstanceSnapshotsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_instanceSnapshots; Aws::String m_nextPageToken; Aws::String m_requestId; }; } // namespace Model } // namespace Lightsail } // namespace Aws