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

Information on the accounts that have had Amazon Inspector scans successfully * disabled. Details are provided for each account.

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

Information on the accounts that have had Amazon Inspector scans successfully * disabled. Details are provided for each account.

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

Information on the accounts that have had Amazon Inspector scans successfully * disabled. Details are provided for each account.

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

Information on the accounts that have had Amazon Inspector scans successfully * disabled. Details are provided for each account.

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

Information on the accounts that have had Amazon Inspector scans successfully * disabled. Details are provided for each account.

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

Information on the accounts that have had Amazon Inspector scans successfully * disabled. Details are provided for each account.

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

Information on the accounts that have had Amazon Inspector scans successfully * disabled. Details are provided for each account.

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

Information on any accounts for which Amazon Inspector scans could not be * disabled. Details are provided for each account.

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

Information on any accounts for which Amazon Inspector scans could not be * disabled. Details are provided for each account.

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

Information on any accounts for which Amazon Inspector scans could not be * disabled. Details are provided for each account.

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

Information on any accounts for which Amazon Inspector scans could not be * disabled. Details are provided for each account.

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

Information on any accounts for which Amazon Inspector scans could not be * disabled. Details are provided for each account.

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

Information on any accounts for which Amazon Inspector scans could not be * disabled. Details are provided for each account.

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

Information on any accounts for which Amazon Inspector scans could not be * disabled. Details are provided for each account.

*/ inline DisableResult& AddFailedAccounts(FailedAccount&& 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 DisableResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DisableResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DisableResult& 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