/** * 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 SES { namespace Model { /** *

Information about a receipt rule set.

A receipt rule set is a * collection of rules that specify what Amazon SES should do with mail it receives * on behalf of your account's verified domains.

For information about * setting up receipt rule sets, see the Amazon * SES Developer Guide.

See Also:

AWS * API Reference

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

The name of the receipt rule set. The name must:

  • This value * can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or * dashes (-).

  • Start and end with a letter or number.

  • *
  • Contain less than 64 characters.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the receipt rule set. The name must:

  • This value * can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or * dashes (-).

  • Start and end with a letter or number.

  • *
  • Contain less than 64 characters.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the receipt rule set. The name must:

  • This value * can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or * dashes (-).

  • Start and end with a letter or number.

  • *
  • Contain less than 64 characters.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the receipt rule set. The name must:

  • This value * can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or * dashes (-).

  • Start and end with a letter or number.

  • *
  • Contain less than 64 characters.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the receipt rule set. The name must:

  • This value * can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or * dashes (-).

  • Start and end with a letter or number.

  • *
  • Contain less than 64 characters.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the receipt rule set. The name must:

  • This value * can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or * dashes (-).

  • Start and end with a letter or number.

  • *
  • Contain less than 64 characters.

*/ inline ReceiptRuleSetMetadata& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the receipt rule set. The name must:

  • This value * can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or * dashes (-).

  • Start and end with a letter or number.

  • *
  • Contain less than 64 characters.

*/ inline ReceiptRuleSetMetadata& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the receipt rule set. The name must:

  • This value * can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or * dashes (-).

  • Start and end with a letter or number.

  • *
  • Contain less than 64 characters.

*/ inline ReceiptRuleSetMetadata& WithName(const char* value) { SetName(value); return *this;} /** *

The date and time the receipt rule set was created.

*/ inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; } /** *

The date and time the receipt rule set was created.

*/ inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; } /** *

The date and time the receipt rule set was created.

*/ inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = value; } /** *

The date and time the receipt rule set was created.

*/ inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::move(value); } /** *

The date and time the receipt rule set was created.

*/ inline ReceiptRuleSetMetadata& WithCreatedTimestamp(const Aws::Utils::DateTime& value) { SetCreatedTimestamp(value); return *this;} /** *

The date and time the receipt rule set was created.

*/ inline ReceiptRuleSetMetadata& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Utils::DateTime m_createdTimestamp; bool m_createdTimestampHasBeenSet = false; }; } // namespace Model } // namespace SES } // namespace Aws