All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.simpleemailv2.model.PutEmailIdentityDkimAttributesRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Simple Email module holds the client classes that are used for communicating with Amazon Simple Email Service

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.amazonaws.services.simpleemailv2.model;

import java.io.Serializable;
import javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceRequest;

/**
 * 

* A request to enable or disable DKIM signing of email that you send from an email identity. *

* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class PutEmailIdentityDkimAttributesRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* The email identity. *

*/ private String emailIdentity; /** *

* Sets the DKIM signing configuration for the identity. *

*

* When you set this value true, then the messages that are sent from the identity are signed using * DKIM. If you set this value to false, your messages are sent without DKIM signing. *

*/ private Boolean signingEnabled; /** *

* The email identity. *

* * @param emailIdentity * The email identity. */ public void setEmailIdentity(String emailIdentity) { this.emailIdentity = emailIdentity; } /** *

* The email identity. *

* * @return The email identity. */ public String getEmailIdentity() { return this.emailIdentity; } /** *

* The email identity. *

* * @param emailIdentity * The email identity. * @return Returns a reference to this object so that method calls can be chained together. */ public PutEmailIdentityDkimAttributesRequest withEmailIdentity(String emailIdentity) { setEmailIdentity(emailIdentity); return this; } /** *

* Sets the DKIM signing configuration for the identity. *

*

* When you set this value true, then the messages that are sent from the identity are signed using * DKIM. If you set this value to false, your messages are sent without DKIM signing. *

* * @param signingEnabled * Sets the DKIM signing configuration for the identity.

*

* When you set this value true, then the messages that are sent from the identity are signed * using DKIM. If you set this value to false, your messages are sent without DKIM signing. */ public void setSigningEnabled(Boolean signingEnabled) { this.signingEnabled = signingEnabled; } /** *

* Sets the DKIM signing configuration for the identity. *

*

* When you set this value true, then the messages that are sent from the identity are signed using * DKIM. If you set this value to false, your messages are sent without DKIM signing. *

* * @return Sets the DKIM signing configuration for the identity.

*

* When you set this value true, then the messages that are sent from the identity are signed * using DKIM. If you set this value to false, your messages are sent without DKIM signing. */ public Boolean getSigningEnabled() { return this.signingEnabled; } /** *

* Sets the DKIM signing configuration for the identity. *

*

* When you set this value true, then the messages that are sent from the identity are signed using * DKIM. If you set this value to false, your messages are sent without DKIM signing. *

* * @param signingEnabled * Sets the DKIM signing configuration for the identity.

*

* When you set this value true, then the messages that are sent from the identity are signed * using DKIM. If you set this value to false, your messages are sent without DKIM signing. * @return Returns a reference to this object so that method calls can be chained together. */ public PutEmailIdentityDkimAttributesRequest withSigningEnabled(Boolean signingEnabled) { setSigningEnabled(signingEnabled); return this; } /** *

* Sets the DKIM signing configuration for the identity. *

*

* When you set this value true, then the messages that are sent from the identity are signed using * DKIM. If you set this value to false, your messages are sent without DKIM signing. *

* * @return Sets the DKIM signing configuration for the identity.

*

* When you set this value true, then the messages that are sent from the identity are signed * using DKIM. If you set this value to false, your messages are sent without DKIM signing. */ public Boolean isSigningEnabled() { return this.signingEnabled; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getEmailIdentity() != null) sb.append("EmailIdentity: ").append(getEmailIdentity()).append(","); if (getSigningEnabled() != null) sb.append("SigningEnabled: ").append(getSigningEnabled()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof PutEmailIdentityDkimAttributesRequest == false) return false; PutEmailIdentityDkimAttributesRequest other = (PutEmailIdentityDkimAttributesRequest) obj; if (other.getEmailIdentity() == null ^ this.getEmailIdentity() == null) return false; if (other.getEmailIdentity() != null && other.getEmailIdentity().equals(this.getEmailIdentity()) == false) return false; if (other.getSigningEnabled() == null ^ this.getSigningEnabled() == null) return false; if (other.getSigningEnabled() != null && other.getSigningEnabled().equals(this.getSigningEnabled()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getEmailIdentity() == null) ? 0 : getEmailIdentity().hashCode()); hashCode = prime * hashCode + ((getSigningEnabled() == null) ? 0 : getSigningEnabled().hashCode()); return hashCode; } @Override public PutEmailIdentityDkimAttributesRequest clone() { return (PutEmailIdentityDkimAttributesRequest) super.clone(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy