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

The rules that were successfully updated.

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

The rules that were successfully updated.

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

The rules that were successfully updated.

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

The rules that were successfully updated.

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

The rules that were successfully updated.

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

The rules that were successfully updated.

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

The rules that were successfully updated.

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

The rules that the operation couldn't update.

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

The rules that the operation couldn't update.

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

The rules that the operation couldn't update.

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

The rules that the operation couldn't update.

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

The rules that the operation couldn't update.

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

The rules that the operation couldn't update.

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

The rules that the operation couldn't update.

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