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

com.amazonaws.services.amplifybackend.model.CreateBackendAuthForgotPasswordConfig Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.778
Show newest version
/*
 * Copyright 2019-2024 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.amplifybackend.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* (DEPRECATED) Describes the forgot password policy for authenticating into the Amplify app. *

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

* (DEPRECATED) Describes which mode to use (either SMS or email) to deliver messages to app users who want * to recover their password. *

*/ private String deliveryMethod; /** *

* (DEPRECATED) The configuration for the email sent when an app user forgets their password. *

*/ private EmailSettings emailSettings; /** *

* (DEPRECATED) The configuration for the SMS message sent when an app user forgets their password. *

*/ private SmsSettings smsSettings; /** *

* (DEPRECATED) Describes which mode to use (either SMS or email) to deliver messages to app users who want * to recover their password. *

* * @param deliveryMethod * (DEPRECATED) * @see DeliveryMethod */ public void setDeliveryMethod(String deliveryMethod) { this.deliveryMethod = deliveryMethod; } /** *

* (DEPRECATED) Describes which mode to use (either SMS or email) to deliver messages to app users who want * to recover their password. *

* * @return (DEPRECATED) * @see DeliveryMethod */ public String getDeliveryMethod() { return this.deliveryMethod; } /** *

* (DEPRECATED) Describes which mode to use (either SMS or email) to deliver messages to app users who want * to recover their password. *

* * @param deliveryMethod * (DEPRECATED) * @return Returns a reference to this object so that method calls can be chained together. * @see DeliveryMethod */ public CreateBackendAuthForgotPasswordConfig withDeliveryMethod(String deliveryMethod) { setDeliveryMethod(deliveryMethod); return this; } /** *

* (DEPRECATED) Describes which mode to use (either SMS or email) to deliver messages to app users who want * to recover their password. *

* * @param deliveryMethod * (DEPRECATED) * @return Returns a reference to this object so that method calls can be chained together. * @see DeliveryMethod */ public CreateBackendAuthForgotPasswordConfig withDeliveryMethod(DeliveryMethod deliveryMethod) { this.deliveryMethod = deliveryMethod.toString(); return this; } /** *

* (DEPRECATED) The configuration for the email sent when an app user forgets their password. *

* * @param emailSettings * (DEPRECATED) */ public void setEmailSettings(EmailSettings emailSettings) { this.emailSettings = emailSettings; } /** *

* (DEPRECATED) The configuration for the email sent when an app user forgets their password. *

* * @return (DEPRECATED) */ public EmailSettings getEmailSettings() { return this.emailSettings; } /** *

* (DEPRECATED) The configuration for the email sent when an app user forgets their password. *

* * @param emailSettings * (DEPRECATED) * @return Returns a reference to this object so that method calls can be chained together. */ public CreateBackendAuthForgotPasswordConfig withEmailSettings(EmailSettings emailSettings) { setEmailSettings(emailSettings); return this; } /** *

* (DEPRECATED) The configuration for the SMS message sent when an app user forgets their password. *

* * @param smsSettings * (DEPRECATED) */ public void setSmsSettings(SmsSettings smsSettings) { this.smsSettings = smsSettings; } /** *

* (DEPRECATED) The configuration for the SMS message sent when an app user forgets their password. *

* * @return (DEPRECATED) */ public SmsSettings getSmsSettings() { return this.smsSettings; } /** *

* (DEPRECATED) The configuration for the SMS message sent when an app user forgets their password. *

* * @param smsSettings * (DEPRECATED) * @return Returns a reference to this object so that method calls can be chained together. */ public CreateBackendAuthForgotPasswordConfig withSmsSettings(SmsSettings smsSettings) { setSmsSettings(smsSettings); return this; } /** * 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 (getDeliveryMethod() != null) sb.append("DeliveryMethod: ").append(getDeliveryMethod()).append(","); if (getEmailSettings() != null) sb.append("EmailSettings: ").append("***Sensitive Data Redacted***").append(","); if (getSmsSettings() != null) sb.append("SmsSettings: ").append("***Sensitive Data Redacted***"); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateBackendAuthForgotPasswordConfig == false) return false; CreateBackendAuthForgotPasswordConfig other = (CreateBackendAuthForgotPasswordConfig) obj; if (other.getDeliveryMethod() == null ^ this.getDeliveryMethod() == null) return false; if (other.getDeliveryMethod() != null && other.getDeliveryMethod().equals(this.getDeliveryMethod()) == false) return false; if (other.getEmailSettings() == null ^ this.getEmailSettings() == null) return false; if (other.getEmailSettings() != null && other.getEmailSettings().equals(this.getEmailSettings()) == false) return false; if (other.getSmsSettings() == null ^ this.getSmsSettings() == null) return false; if (other.getSmsSettings() != null && other.getSmsSettings().equals(this.getSmsSettings()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDeliveryMethod() == null) ? 0 : getDeliveryMethod().hashCode()); hashCode = prime * hashCode + ((getEmailSettings() == null) ? 0 : getEmailSettings().hashCode()); hashCode = prime * hashCode + ((getSmsSettings() == null) ? 0 : getSmsSettings().hashCode()); return hashCode; } @Override public CreateBackendAuthForgotPasswordConfig clone() { try { return (CreateBackendAuthForgotPasswordConfig) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.amplifybackend.model.transform.CreateBackendAuthForgotPasswordConfigMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy