/** * 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 list of Amazon Web Services accounts and the active CloudFront key pairs in * each account that CloudFront can use to verify the signatures of signed URLs and * signed cookies.

See Also:

AWS * API Reference

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

An Amazon Web Services account number that contains active CloudFront key * pairs that CloudFront can use to verify the signatures of signed URLs and signed * cookies. If the Amazon Web Services account that owns the key pairs is the same * account that owns the CloudFront distribution, the value of this field is * self.

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

An Amazon Web Services account number that contains active CloudFront key * pairs that CloudFront can use to verify the signatures of signed URLs and signed * cookies. If the Amazon Web Services account that owns the key pairs is the same * account that owns the CloudFront distribution, the value of this field is * self.

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

An Amazon Web Services account number that contains active CloudFront key * pairs that CloudFront can use to verify the signatures of signed URLs and signed * cookies. If the Amazon Web Services account that owns the key pairs is the same * account that owns the CloudFront distribution, the value of this field is * self.

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

An Amazon Web Services account number that contains active CloudFront key * pairs that CloudFront can use to verify the signatures of signed URLs and signed * cookies. If the Amazon Web Services account that owns the key pairs is the same * account that owns the CloudFront distribution, the value of this field is * self.

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

An Amazon Web Services account number that contains active CloudFront key * pairs that CloudFront can use to verify the signatures of signed URLs and signed * cookies. If the Amazon Web Services account that owns the key pairs is the same * account that owns the CloudFront distribution, the value of this field is * self.

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

An Amazon Web Services account number that contains active CloudFront key * pairs that CloudFront can use to verify the signatures of signed URLs and signed * cookies. If the Amazon Web Services account that owns the key pairs is the same * account that owns the CloudFront distribution, the value of this field is * self.

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

An Amazon Web Services account number that contains active CloudFront key * pairs that CloudFront can use to verify the signatures of signed URLs and signed * cookies. If the Amazon Web Services account that owns the key pairs is the same * account that owns the CloudFront distribution, the value of this field is * self.

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

An Amazon Web Services account number that contains active CloudFront key * pairs that CloudFront can use to verify the signatures of signed URLs and signed * cookies. If the Amazon Web Services account that owns the key pairs is the same * account that owns the CloudFront distribution, the value of this field is * self.

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

A list of CloudFront key pair identifiers.

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

A list of CloudFront key pair identifiers.

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

A list of CloudFront key pair identifiers.

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

A list of CloudFront key pair identifiers.

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

A list of CloudFront key pair identifiers.

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

A list of CloudFront key pair identifiers.

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