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

An array of objects that provide Amazon Inspector free trial details for each * of the requested accounts.

*/ inline const Aws::Vector& GetAccounts() const{ return m_accounts; } /** *

An array of objects that provide Amazon Inspector free trial details for each * of the requested accounts.

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

An array of objects that provide Amazon Inspector free trial details for each * of the requested accounts.

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

An array of objects that provide Amazon Inspector free trial details for each * of the requested accounts.

*/ inline BatchGetFreeTrialInfoResult& WithAccounts(const Aws::Vector& value) { SetAccounts(value); return *this;} /** *

An array of objects that provide Amazon Inspector free trial details for each * of the requested accounts.

*/ inline BatchGetFreeTrialInfoResult& WithAccounts(Aws::Vector&& value) { SetAccounts(std::move(value)); return *this;} /** *

An array of objects that provide Amazon Inspector free trial details for each * of the requested accounts.

*/ inline BatchGetFreeTrialInfoResult& AddAccounts(const FreeTrialAccountInfo& value) { m_accounts.push_back(value); return *this; } /** *

An array of objects that provide Amazon Inspector free trial details for each * of the requested accounts.

*/ inline BatchGetFreeTrialInfoResult& AddAccounts(FreeTrialAccountInfo&& value) { m_accounts.push_back(std::move(value)); return *this; } /** *

An array of objects detailing any accounts that free trial data could not be * returned for.

*/ inline const Aws::Vector& GetFailedAccounts() const{ return m_failedAccounts; } /** *

An array of objects detailing any accounts that free trial data could not be * returned for.

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

An array of objects detailing any accounts that free trial data could not be * returned for.

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

An array of objects detailing any accounts that free trial data could not be * returned for.

*/ inline BatchGetFreeTrialInfoResult& WithFailedAccounts(const Aws::Vector& value) { SetFailedAccounts(value); return *this;} /** *

An array of objects detailing any accounts that free trial data could not be * returned for.

*/ inline BatchGetFreeTrialInfoResult& WithFailedAccounts(Aws::Vector&& value) { SetFailedAccounts(std::move(value)); return *this;} /** *

An array of objects detailing any accounts that free trial data could not be * returned for.

*/ inline BatchGetFreeTrialInfoResult& AddFailedAccounts(const FreeTrialInfoError& value) { m_failedAccounts.push_back(value); return *this; } /** *

An array of objects detailing any accounts that free trial data could not be * returned for.

*/ inline BatchGetFreeTrialInfoResult& AddFailedAccounts(FreeTrialInfoError&& value) { m_failedAccounts.push_back(std::move(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 BatchGetFreeTrialInfoResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline BatchGetFreeTrialInfoResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline BatchGetFreeTrialInfoResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_accounts; Aws::Vector m_failedAccounts; Aws::String m_requestId; }; } // namespace Model } // namespace Inspector2 } // namespace Aws