/** * 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 { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ServiceCatalog { namespace Model { /** *

Information about the portfolio share operation.

See Also:

* AWS * API Reference

*/ class ShareDetails { public: AWS_SERVICECATALOG_API ShareDetails(); AWS_SERVICECATALOG_API ShareDetails(Aws::Utils::Json::JsonView jsonValue); AWS_SERVICECATALOG_API ShareDetails& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SERVICECATALOG_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

List of accounts for whom the operation succeeded.

*/ inline const Aws::Vector& GetSuccessfulShares() const{ return m_successfulShares; } /** *

List of accounts for whom the operation succeeded.

*/ inline bool SuccessfulSharesHasBeenSet() const { return m_successfulSharesHasBeenSet; } /** *

List of accounts for whom the operation succeeded.

*/ inline void SetSuccessfulShares(const Aws::Vector& value) { m_successfulSharesHasBeenSet = true; m_successfulShares = value; } /** *

List of accounts for whom the operation succeeded.

*/ inline void SetSuccessfulShares(Aws::Vector&& value) { m_successfulSharesHasBeenSet = true; m_successfulShares = std::move(value); } /** *

List of accounts for whom the operation succeeded.

*/ inline ShareDetails& WithSuccessfulShares(const Aws::Vector& value) { SetSuccessfulShares(value); return *this;} /** *

List of accounts for whom the operation succeeded.

*/ inline ShareDetails& WithSuccessfulShares(Aws::Vector&& value) { SetSuccessfulShares(std::move(value)); return *this;} /** *

List of accounts for whom the operation succeeded.

*/ inline ShareDetails& AddSuccessfulShares(const Aws::String& value) { m_successfulSharesHasBeenSet = true; m_successfulShares.push_back(value); return *this; } /** *

List of accounts for whom the operation succeeded.

*/ inline ShareDetails& AddSuccessfulShares(Aws::String&& value) { m_successfulSharesHasBeenSet = true; m_successfulShares.push_back(std::move(value)); return *this; } /** *

List of accounts for whom the operation succeeded.

*/ inline ShareDetails& AddSuccessfulShares(const char* value) { m_successfulSharesHasBeenSet = true; m_successfulShares.push_back(value); return *this; } /** *

List of errors.

*/ inline const Aws::Vector& GetShareErrors() const{ return m_shareErrors; } /** *

List of errors.

*/ inline bool ShareErrorsHasBeenSet() const { return m_shareErrorsHasBeenSet; } /** *

List of errors.

*/ inline void SetShareErrors(const Aws::Vector& value) { m_shareErrorsHasBeenSet = true; m_shareErrors = value; } /** *

List of errors.

*/ inline void SetShareErrors(Aws::Vector&& value) { m_shareErrorsHasBeenSet = true; m_shareErrors = std::move(value); } /** *

List of errors.

*/ inline ShareDetails& WithShareErrors(const Aws::Vector& value) { SetShareErrors(value); return *this;} /** *

List of errors.

*/ inline ShareDetails& WithShareErrors(Aws::Vector&& value) { SetShareErrors(std::move(value)); return *this;} /** *

List of errors.

*/ inline ShareDetails& AddShareErrors(const ShareError& value) { m_shareErrorsHasBeenSet = true; m_shareErrors.push_back(value); return *this; } /** *

List of errors.

*/ inline ShareDetails& AddShareErrors(ShareError&& value) { m_shareErrorsHasBeenSet = true; m_shareErrors.push_back(std::move(value)); return *this; } private: Aws::Vector m_successfulShares; bool m_successfulSharesHasBeenSet = false; Aws::Vector m_shareErrors; bool m_shareErrorsHasBeenSet = false; }; } // namespace Model } // namespace ServiceCatalog } // namespace Aws