/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace CloudFront { namespace Model { /** *

A complex type that lists the AWS accounts that were included in the * TrustedSigners complex type, as well as their active CloudFront key * pair IDs, if any.

See Also:

AWS * API Reference

*/ class AWS_CLOUDFRONT_API Signer { public: Signer(); Signer(const Aws::Utils::Xml::XmlNode& xmlNode); Signer& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const; /** *

An AWS account that is included in the TrustedSigners complex * type for this distribution. Valid values include:

  • * self, which is the AWS account used to create the distribution.

    *
  • An AWS account number.

*/ inline const Aws::String& GetAwsAccountNumber() const{ return m_awsAccountNumber; } /** *

An AWS account that is included in the TrustedSigners complex * type for this distribution. Valid values include:

  • * self, which is the AWS account used to create the distribution.

    *
  • An AWS account number.

*/ inline bool AwsAccountNumberHasBeenSet() const { return m_awsAccountNumberHasBeenSet; } /** *

An AWS account that is included in the TrustedSigners complex * type for this distribution. Valid values include:

  • * self, which is the AWS account used to create the distribution.

    *
  • An AWS account number.

*/ inline void SetAwsAccountNumber(const Aws::String& value) { m_awsAccountNumberHasBeenSet = true; m_awsAccountNumber = value; } /** *

An AWS account that is included in the TrustedSigners complex * type for this distribution. Valid values include:

  • * self, which is the AWS account used to create the distribution.

    *
  • An AWS account number.

*/ inline void SetAwsAccountNumber(Aws::String&& value) { m_awsAccountNumberHasBeenSet = true; m_awsAccountNumber = std::move(value); } /** *

An AWS account that is included in the TrustedSigners complex * type for this distribution. Valid values include:

  • * self, which is the AWS account used to create the distribution.

    *
  • An AWS account number.

*/ inline void SetAwsAccountNumber(const char* value) { m_awsAccountNumberHasBeenSet = true; m_awsAccountNumber.assign(value); } /** *

An AWS account that is included in the TrustedSigners complex * type for this distribution. Valid values include:

  • * self, which is the AWS account used to create the distribution.

    *
  • An AWS account number.

*/ inline Signer& WithAwsAccountNumber(const Aws::String& value) { SetAwsAccountNumber(value); return *this;} /** *

An AWS account that is included in the TrustedSigners complex * type for this distribution. Valid values include:

  • * self, which is the AWS account used to create the distribution.

    *
  • An AWS account number.

*/ inline Signer& WithAwsAccountNumber(Aws::String&& value) { SetAwsAccountNumber(std::move(value)); return *this;} /** *

An AWS account that is included in the TrustedSigners complex * type for this distribution. Valid values include:

  • * self, which is the AWS account used to create the distribution.

    *
  • An AWS account number.

*/ inline Signer& WithAwsAccountNumber(const char* value) { SetAwsAccountNumber(value); return *this;} /** *

A complex type that lists the active CloudFront key pairs, if any, that are * associated with AwsAccountNumber.

*/ inline const KeyPairIds& GetKeyPairIds() const{ return m_keyPairIds; } /** *

A complex type that lists the active CloudFront key pairs, if any, that are * associated with AwsAccountNumber.

*/ inline bool KeyPairIdsHasBeenSet() const { return m_keyPairIdsHasBeenSet; } /** *

A complex type that lists the active CloudFront key pairs, if any, that are * associated with AwsAccountNumber.

*/ inline void SetKeyPairIds(const KeyPairIds& value) { m_keyPairIdsHasBeenSet = true; m_keyPairIds = value; } /** *

A complex type that lists the active CloudFront key pairs, if any, that are * associated with AwsAccountNumber.

*/ inline void SetKeyPairIds(KeyPairIds&& value) { m_keyPairIdsHasBeenSet = true; m_keyPairIds = std::move(value); } /** *

A complex type that lists the active CloudFront key pairs, if any, that are * associated with AwsAccountNumber.

*/ inline Signer& WithKeyPairIds(const KeyPairIds& value) { SetKeyPairIds(value); return *this;} /** *

A complex type that lists the active CloudFront key pairs, if any, that are * associated with AwsAccountNumber.

*/ inline Signer& WithKeyPairIds(KeyPairIds&& value) { SetKeyPairIds(std::move(value)); return *this;} private: Aws::String m_awsAccountNumber; bool m_awsAccountNumberHasBeenSet; KeyPairIds m_keyPairIds; bool m_keyPairIdsHasBeenSet; }; } // namespace Model } // namespace CloudFront } // namespace Aws