/** * 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 DeviceFarm { namespace Model { /** *

Returns the status result for a device offering.

See Also:

* AWS * API Reference

*/ class GetOfferingStatusResult { public: AWS_DEVICEFARM_API GetOfferingStatusResult(); AWS_DEVICEFARM_API GetOfferingStatusResult(const Aws::AmazonWebServiceResult& result); AWS_DEVICEFARM_API GetOfferingStatusResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

When specified, gets the offering status for the current period.

*/ inline const Aws::Map& GetCurrent() const{ return m_current; } /** *

When specified, gets the offering status for the current period.

*/ inline void SetCurrent(const Aws::Map& value) { m_current = value; } /** *

When specified, gets the offering status for the current period.

*/ inline void SetCurrent(Aws::Map&& value) { m_current = std::move(value); } /** *

When specified, gets the offering status for the current period.

*/ inline GetOfferingStatusResult& WithCurrent(const Aws::Map& value) { SetCurrent(value); return *this;} /** *

When specified, gets the offering status for the current period.

*/ inline GetOfferingStatusResult& WithCurrent(Aws::Map&& value) { SetCurrent(std::move(value)); return *this;} /** *

When specified, gets the offering status for the current period.

*/ inline GetOfferingStatusResult& AddCurrent(const Aws::String& key, const OfferingStatus& value) { m_current.emplace(key, value); return *this; } /** *

When specified, gets the offering status for the current period.

*/ inline GetOfferingStatusResult& AddCurrent(Aws::String&& key, const OfferingStatus& value) { m_current.emplace(std::move(key), value); return *this; } /** *

When specified, gets the offering status for the current period.

*/ inline GetOfferingStatusResult& AddCurrent(const Aws::String& key, OfferingStatus&& value) { m_current.emplace(key, std::move(value)); return *this; } /** *

When specified, gets the offering status for the current period.

*/ inline GetOfferingStatusResult& AddCurrent(Aws::String&& key, OfferingStatus&& value) { m_current.emplace(std::move(key), std::move(value)); return *this; } /** *

When specified, gets the offering status for the current period.

*/ inline GetOfferingStatusResult& AddCurrent(const char* key, OfferingStatus&& value) { m_current.emplace(key, std::move(value)); return *this; } /** *

When specified, gets the offering status for the current period.

*/ inline GetOfferingStatusResult& AddCurrent(const char* key, const OfferingStatus& value) { m_current.emplace(key, value); return *this; } /** *

When specified, gets the offering status for the next period.

*/ inline const Aws::Map& GetNextPeriod() const{ return m_nextPeriod; } /** *

When specified, gets the offering status for the next period.

*/ inline void SetNextPeriod(const Aws::Map& value) { m_nextPeriod = value; } /** *

When specified, gets the offering status for the next period.

*/ inline void SetNextPeriod(Aws::Map&& value) { m_nextPeriod = std::move(value); } /** *

When specified, gets the offering status for the next period.

*/ inline GetOfferingStatusResult& WithNextPeriod(const Aws::Map& value) { SetNextPeriod(value); return *this;} /** *

When specified, gets the offering status for the next period.

*/ inline GetOfferingStatusResult& WithNextPeriod(Aws::Map&& value) { SetNextPeriod(std::move(value)); return *this;} /** *

When specified, gets the offering status for the next period.

*/ inline GetOfferingStatusResult& AddNextPeriod(const Aws::String& key, const OfferingStatus& value) { m_nextPeriod.emplace(key, value); return *this; } /** *

When specified, gets the offering status for the next period.

*/ inline GetOfferingStatusResult& AddNextPeriod(Aws::String&& key, const OfferingStatus& value) { m_nextPeriod.emplace(std::move(key), value); return *this; } /** *

When specified, gets the offering status for the next period.

*/ inline GetOfferingStatusResult& AddNextPeriod(const Aws::String& key, OfferingStatus&& value) { m_nextPeriod.emplace(key, std::move(value)); return *this; } /** *

When specified, gets the offering status for the next period.

*/ inline GetOfferingStatusResult& AddNextPeriod(Aws::String&& key, OfferingStatus&& value) { m_nextPeriod.emplace(std::move(key), std::move(value)); return *this; } /** *

When specified, gets the offering status for the next period.

*/ inline GetOfferingStatusResult& AddNextPeriod(const char* key, OfferingStatus&& value) { m_nextPeriod.emplace(key, std::move(value)); return *this; } /** *

When specified, gets the offering status for the next period.

*/ inline GetOfferingStatusResult& AddNextPeriod(const char* key, const OfferingStatus& value) { m_nextPeriod.emplace(key, value); return *this; } /** *

An identifier that was returned from the previous call to this operation, * which can be used to return the next set of items in the list.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

An identifier that was returned from the previous call to this operation, * which can be used to return the next set of items in the list.

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

An identifier that was returned from the previous call to this operation, * which can be used to return the next set of items in the list.

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

An identifier that was returned from the previous call to this operation, * which can be used to return the next set of items in the list.

*/ inline void SetNextToken(const char* value) { m_nextToken.assign(value); } /** *

An identifier that was returned from the previous call to this operation, * which can be used to return the next set of items in the list.

*/ inline GetOfferingStatusResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

An identifier that was returned from the previous call to this operation, * which can be used to return the next set of items in the list.

*/ inline GetOfferingStatusResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

An identifier that was returned from the previous call to this operation, * which can be used to return the next set of items in the list.

*/ inline GetOfferingStatusResult& WithNextToken(const char* value) { SetNextToken(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 GetOfferingStatusResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetOfferingStatusResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetOfferingStatusResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Map m_current; Aws::Map m_nextPeriod; Aws::String m_nextToken; Aws::String m_requestId; }; } // namespace Model } // namespace DeviceFarm } // namespace Aws