/** * 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 Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { /** *

The discovery failure reason.

See Also:

AWS * API Reference

*/ class IpamDiscoveryFailureReason { public: AWS_EC2_API IpamDiscoveryFailureReason(); AWS_EC2_API IpamDiscoveryFailureReason(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API IpamDiscoveryFailureReason& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The discovery failure code.

  • * assume-role-failure - IPAM could not assume the Amazon Web Services * IAM service-linked role. This could be because of any of the following:

      *
    • SLR has not been created yet and IPAM is still creating it.

    • *
    • You have opted-out of the IPAM home Region.

    • Account * you are using as your IPAM account has been suspended.

  • *
  • throttling-failure - IPAM account is already using the * allotted transactions per second and IPAM is receiving a throttling error when * assuming the Amazon Web Services IAM SLR.

  • * unauthorized-failure - Amazon Web Services account making the * request is not authorized. For more information, see AuthFailure * in the Amazon Elastic Compute Cloud API Reference.

*/ inline const IpamDiscoveryFailureCode& GetCode() const{ return m_code; } /** *

The discovery failure code.

  • * assume-role-failure - IPAM could not assume the Amazon Web Services * IAM service-linked role. This could be because of any of the following:

      *
    • SLR has not been created yet and IPAM is still creating it.

    • *
    • You have opted-out of the IPAM home Region.

    • Account * you are using as your IPAM account has been suspended.

  • *
  • throttling-failure - IPAM account is already using the * allotted transactions per second and IPAM is receiving a throttling error when * assuming the Amazon Web Services IAM SLR.

  • * unauthorized-failure - Amazon Web Services account making the * request is not authorized. For more information, see AuthFailure * in the Amazon Elastic Compute Cloud API Reference.

*/ inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; } /** *

The discovery failure code.

  • * assume-role-failure - IPAM could not assume the Amazon Web Services * IAM service-linked role. This could be because of any of the following:

      *
    • SLR has not been created yet and IPAM is still creating it.

    • *
    • You have opted-out of the IPAM home Region.

    • Account * you are using as your IPAM account has been suspended.

  • *
  • throttling-failure - IPAM account is already using the * allotted transactions per second and IPAM is receiving a throttling error when * assuming the Amazon Web Services IAM SLR.

  • * unauthorized-failure - Amazon Web Services account making the * request is not authorized. For more information, see AuthFailure * in the Amazon Elastic Compute Cloud API Reference.

*/ inline void SetCode(const IpamDiscoveryFailureCode& value) { m_codeHasBeenSet = true; m_code = value; } /** *

The discovery failure code.

  • * assume-role-failure - IPAM could not assume the Amazon Web Services * IAM service-linked role. This could be because of any of the following:

      *
    • SLR has not been created yet and IPAM is still creating it.

    • *
    • You have opted-out of the IPAM home Region.

    • Account * you are using as your IPAM account has been suspended.

  • *
  • throttling-failure - IPAM account is already using the * allotted transactions per second and IPAM is receiving a throttling error when * assuming the Amazon Web Services IAM SLR.

  • * unauthorized-failure - Amazon Web Services account making the * request is not authorized. For more information, see AuthFailure * in the Amazon Elastic Compute Cloud API Reference.

*/ inline void SetCode(IpamDiscoveryFailureCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); } /** *

The discovery failure code.

  • * assume-role-failure - IPAM could not assume the Amazon Web Services * IAM service-linked role. This could be because of any of the following:

      *
    • SLR has not been created yet and IPAM is still creating it.

    • *
    • You have opted-out of the IPAM home Region.

    • Account * you are using as your IPAM account has been suspended.

  • *
  • throttling-failure - IPAM account is already using the * allotted transactions per second and IPAM is receiving a throttling error when * assuming the Amazon Web Services IAM SLR.

  • * unauthorized-failure - Amazon Web Services account making the * request is not authorized. For more information, see AuthFailure * in the Amazon Elastic Compute Cloud API Reference.

*/ inline IpamDiscoveryFailureReason& WithCode(const IpamDiscoveryFailureCode& value) { SetCode(value); return *this;} /** *

The discovery failure code.

  • * assume-role-failure - IPAM could not assume the Amazon Web Services * IAM service-linked role. This could be because of any of the following:

      *
    • SLR has not been created yet and IPAM is still creating it.

    • *
    • You have opted-out of the IPAM home Region.

    • Account * you are using as your IPAM account has been suspended.

  • *
  • throttling-failure - IPAM account is already using the * allotted transactions per second and IPAM is receiving a throttling error when * assuming the Amazon Web Services IAM SLR.

  • * unauthorized-failure - Amazon Web Services account making the * request is not authorized. For more information, see AuthFailure * in the Amazon Elastic Compute Cloud API Reference.

*/ inline IpamDiscoveryFailureReason& WithCode(IpamDiscoveryFailureCode&& value) { SetCode(std::move(value)); return *this;} /** *

The discovery failure message.

*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *

The discovery failure message.

*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *

The discovery failure message.

*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *

The discovery failure message.

*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *

The discovery failure message.

*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *

The discovery failure message.

*/ inline IpamDiscoveryFailureReason& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *

The discovery failure message.

*/ inline IpamDiscoveryFailureReason& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *

The discovery failure message.

*/ inline IpamDiscoveryFailureReason& WithMessage(const char* value) { SetMessage(value); return *this;} private: IpamDiscoveryFailureCode m_code; bool m_codeHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws