/** * 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 AWS_LIGHTSAIL_API GetAlarmsResult { public: GetAlarmsResult(); GetAlarmsResult(const Aws::AmazonWebServiceResult& result); GetAlarmsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

An array of objects that describe the alarms.

*/ inline const Aws::Vector& GetAlarms() const{ return m_alarms; } /** *

An array of objects that describe the alarms.

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

An array of objects that describe the alarms.

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

An array of objects that describe the alarms.

*/ inline GetAlarmsResult& WithAlarms(const Aws::Vector& value) { SetAlarms(value); return *this;} /** *

An array of objects that describe the alarms.

*/ inline GetAlarmsResult& WithAlarms(Aws::Vector&& value) { SetAlarms(std::move(value)); return *this;} /** *

An array of objects that describe the alarms.

*/ inline GetAlarmsResult& AddAlarms(const Alarm& value) { m_alarms.push_back(value); return *this; } /** *

An array of objects that describe the alarms.

*/ inline GetAlarmsResult& AddAlarms(Alarm&& value) { m_alarms.push_back(std::move(value)); return *this; } /** *

The token to advance to the next page of resutls 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 GetAlarms * 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 resutls 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 GetAlarms * 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 resutls 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 GetAlarms * 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 resutls 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 GetAlarms * 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 resutls 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 GetAlarms * request and specify the next page token using the pageToken * parameter.

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

The token to advance to the next page of resutls 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 GetAlarms * request and specify the next page token using the pageToken * parameter.

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

The token to advance to the next page of resutls 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 GetAlarms * request and specify the next page token using the pageToken * parameter.

*/ inline GetAlarmsResult& WithNextPageToken(const char* value) { SetNextPageToken(value); return *this;} private: Aws::Vector m_alarms; Aws::String m_nextPageToken; }; } // namespace Model } // namespace Lightsail } // namespace Aws