/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Represents a request to create a sending authorization policy for an
* identity. Sending authorization is an Amazon SES feature that enables you to
* authorize other senders to use your identities. For information, see the Amazon
* SES Developer Guide.See Also:
AWS
* API Reference
The email identity.
*/ inline const Aws::String& GetEmailIdentity() const{ return m_emailIdentity; } /** *The email identity.
*/ inline bool EmailIdentityHasBeenSet() const { return m_emailIdentityHasBeenSet; } /** *The email identity.
*/ inline void SetEmailIdentity(const Aws::String& value) { m_emailIdentityHasBeenSet = true; m_emailIdentity = value; } /** *The email identity.
*/ inline void SetEmailIdentity(Aws::String&& value) { m_emailIdentityHasBeenSet = true; m_emailIdentity = std::move(value); } /** *The email identity.
*/ inline void SetEmailIdentity(const char* value) { m_emailIdentityHasBeenSet = true; m_emailIdentity.assign(value); } /** *The email identity.
*/ inline CreateEmailIdentityPolicyRequest& WithEmailIdentity(const Aws::String& value) { SetEmailIdentity(value); return *this;} /** *The email identity.
*/ inline CreateEmailIdentityPolicyRequest& WithEmailIdentity(Aws::String&& value) { SetEmailIdentity(std::move(value)); return *this;} /** *The email identity.
*/ inline CreateEmailIdentityPolicyRequest& WithEmailIdentity(const char* value) { SetEmailIdentity(value); return *this;} /** *The name of the policy.
The policy name cannot exceed 64 characters * and can only include alphanumeric characters, dashes, and underscores.
*/ inline const Aws::String& GetPolicyName() const{ return m_policyName; } /** *The name of the policy.
The policy name cannot exceed 64 characters * and can only include alphanumeric characters, dashes, and underscores.
*/ inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; } /** *The name of the policy.
The policy name cannot exceed 64 characters * and can only include alphanumeric characters, dashes, and underscores.
*/ inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; } /** *The name of the policy.
The policy name cannot exceed 64 characters * and can only include alphanumeric characters, dashes, and underscores.
*/ inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); } /** *The name of the policy.
The policy name cannot exceed 64 characters * and can only include alphanumeric characters, dashes, and underscores.
*/ inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); } /** *The name of the policy.
The policy name cannot exceed 64 characters * and can only include alphanumeric characters, dashes, and underscores.
*/ inline CreateEmailIdentityPolicyRequest& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;} /** *The name of the policy.
The policy name cannot exceed 64 characters * and can only include alphanumeric characters, dashes, and underscores.
*/ inline CreateEmailIdentityPolicyRequest& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;} /** *The name of the policy.
The policy name cannot exceed 64 characters * and can only include alphanumeric characters, dashes, and underscores.
*/ inline CreateEmailIdentityPolicyRequest& WithPolicyName(const char* value) { SetPolicyName(value); return *this;} /** *The text of the policy in JSON format. The policy cannot exceed 4 KB.
*For information about the syntax of sending authorization policies, see the * Amazon * SES Developer Guide.
*/ inline const Aws::String& GetPolicy() const{ return m_policy; } /** *The text of the policy in JSON format. The policy cannot exceed 4 KB.
*For information about the syntax of sending authorization policies, see the * Amazon * SES Developer Guide.
*/ inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; } /** *The text of the policy in JSON format. The policy cannot exceed 4 KB.
*For information about the syntax of sending authorization policies, see the * Amazon * SES Developer Guide.
*/ inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; } /** *The text of the policy in JSON format. The policy cannot exceed 4 KB.
*For information about the syntax of sending authorization policies, see the * Amazon * SES Developer Guide.
*/ inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); } /** *The text of the policy in JSON format. The policy cannot exceed 4 KB.
*For information about the syntax of sending authorization policies, see the * Amazon * SES Developer Guide.
*/ inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); } /** *The text of the policy in JSON format. The policy cannot exceed 4 KB.
*For information about the syntax of sending authorization policies, see the * Amazon * SES Developer Guide.
*/ inline CreateEmailIdentityPolicyRequest& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;} /** *The text of the policy in JSON format. The policy cannot exceed 4 KB.
*For information about the syntax of sending authorization policies, see the * Amazon * SES Developer Guide.
*/ inline CreateEmailIdentityPolicyRequest& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;} /** *The text of the policy in JSON format. The policy cannot exceed 4 KB.
*For information about the syntax of sending authorization policies, see the * Amazon * SES Developer Guide.
*/ inline CreateEmailIdentityPolicyRequest& WithPolicy(const char* value) { SetPolicy(value); return *this;} private: Aws::String m_emailIdentity; bool m_emailIdentityHasBeenSet = false; Aws::String m_policyName; bool m_policyNameHasBeenSet = false; Aws::String m_policy; bool m_policyHasBeenSet = false; }; } // namespace Model } // namespace SESV2 } // namespace Aws