/** * 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 VPCLattice { namespace Model { class RegisterTargetsResult { public: AWS_VPCLATTICE_API RegisterTargetsResult(); AWS_VPCLATTICE_API RegisterTargetsResult(const Aws::AmazonWebServiceResult& result); AWS_VPCLATTICE_API RegisterTargetsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The targets that were successfully registered.

*/ inline const Aws::Vector& GetSuccessful() const{ return m_successful; } /** *

The targets that were successfully registered.

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

The targets that were successfully registered.

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

The targets that were successfully registered.

*/ inline RegisterTargetsResult& WithSuccessful(const Aws::Vector& value) { SetSuccessful(value); return *this;} /** *

The targets that were successfully registered.

*/ inline RegisterTargetsResult& WithSuccessful(Aws::Vector&& value) { SetSuccessful(std::move(value)); return *this;} /** *

The targets that were successfully registered.

*/ inline RegisterTargetsResult& AddSuccessful(const Target& value) { m_successful.push_back(value); return *this; } /** *

The targets that were successfully registered.

*/ inline RegisterTargetsResult& AddSuccessful(Target&& value) { m_successful.push_back(std::move(value)); return *this; } /** *

The targets that were not registered.

*/ inline const Aws::Vector& GetUnsuccessful() const{ return m_unsuccessful; } /** *

The targets that were not registered.

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

The targets that were not registered.

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

The targets that were not registered.

*/ inline RegisterTargetsResult& WithUnsuccessful(const Aws::Vector& value) { SetUnsuccessful(value); return *this;} /** *

The targets that were not registered.

*/ inline RegisterTargetsResult& WithUnsuccessful(Aws::Vector&& value) { SetUnsuccessful(std::move(value)); return *this;} /** *

The targets that were not registered.

*/ inline RegisterTargetsResult& AddUnsuccessful(const TargetFailure& value) { m_unsuccessful.push_back(value); return *this; } /** *

The targets that were not registered.

*/ inline RegisterTargetsResult& AddUnsuccessful(TargetFailure&& value) { m_unsuccessful.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 RegisterTargetsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline RegisterTargetsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline RegisterTargetsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_successful; Aws::Vector m_unsuccessful; Aws::String m_requestId; }; } // namespace Model } // namespace VPCLattice } // namespace Aws