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

com.amazonaws.services.mailmanager.model.GetRelayResult Maven / Gradle / Ivy

Go to download

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

The 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.mailmanager.model;

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

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

    /**
     * 

* The authentication attribute—contains the secret ARN where the customer relay server credentials are stored. *

*/ private RelayAuthentication authentication; /** *

* The timestamp of when the relay was created. *

*/ private java.util.Date createdTimestamp; /** *

* The timestamp of when relay was last updated. *

*/ private java.util.Date lastModifiedTimestamp; /** *

* The Amazon Resource Name (ARN) of the relay. *

*/ private String relayArn; /** *

* The unique relay identifier. *

*/ private String relayId; /** *

* The unique name of the relay. *

*/ private String relayName; /** *

* The destination relay server address. *

*/ private String serverName; /** *

* The destination relay server port. *

*/ private Integer serverPort; /** *

* The authentication attribute—contains the secret ARN where the customer relay server credentials are stored. *

* * @param authentication * The authentication attribute—contains the secret ARN where the customer relay server credentials are * stored. */ public void setAuthentication(RelayAuthentication authentication) { this.authentication = authentication; } /** *

* The authentication attribute—contains the secret ARN where the customer relay server credentials are stored. *

* * @return The authentication attribute—contains the secret ARN where the customer relay server credentials are * stored. */ public RelayAuthentication getAuthentication() { return this.authentication; } /** *

* The authentication attribute—contains the secret ARN where the customer relay server credentials are stored. *

* * @param authentication * The authentication attribute—contains the secret ARN where the customer relay server credentials are * stored. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRelayResult withAuthentication(RelayAuthentication authentication) { setAuthentication(authentication); return this; } /** *

* The timestamp of when the relay was created. *

* * @param createdTimestamp * The timestamp of when the relay was created. */ public void setCreatedTimestamp(java.util.Date createdTimestamp) { this.createdTimestamp = createdTimestamp; } /** *

* The timestamp of when the relay was created. *

* * @return The timestamp of when the relay was created. */ public java.util.Date getCreatedTimestamp() { return this.createdTimestamp; } /** *

* The timestamp of when the relay was created. *

* * @param createdTimestamp * The timestamp of when the relay was created. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRelayResult withCreatedTimestamp(java.util.Date createdTimestamp) { setCreatedTimestamp(createdTimestamp); return this; } /** *

* The timestamp of when relay was last updated. *

* * @param lastModifiedTimestamp * The timestamp of when relay was last updated. */ public void setLastModifiedTimestamp(java.util.Date lastModifiedTimestamp) { this.lastModifiedTimestamp = lastModifiedTimestamp; } /** *

* The timestamp of when relay was last updated. *

* * @return The timestamp of when relay was last updated. */ public java.util.Date getLastModifiedTimestamp() { return this.lastModifiedTimestamp; } /** *

* The timestamp of when relay was last updated. *

* * @param lastModifiedTimestamp * The timestamp of when relay was last updated. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRelayResult withLastModifiedTimestamp(java.util.Date lastModifiedTimestamp) { setLastModifiedTimestamp(lastModifiedTimestamp); return this; } /** *

* The Amazon Resource Name (ARN) of the relay. *

* * @param relayArn * The Amazon Resource Name (ARN) of the relay. */ public void setRelayArn(String relayArn) { this.relayArn = relayArn; } /** *

* The Amazon Resource Name (ARN) of the relay. *

* * @return The Amazon Resource Name (ARN) of the relay. */ public String getRelayArn() { return this.relayArn; } /** *

* The Amazon Resource Name (ARN) of the relay. *

* * @param relayArn * The Amazon Resource Name (ARN) of the relay. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRelayResult withRelayArn(String relayArn) { setRelayArn(relayArn); return this; } /** *

* The unique relay identifier. *

* * @param relayId * The unique relay identifier. */ public void setRelayId(String relayId) { this.relayId = relayId; } /** *

* The unique relay identifier. *

* * @return The unique relay identifier. */ public String getRelayId() { return this.relayId; } /** *

* The unique relay identifier. *

* * @param relayId * The unique relay identifier. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRelayResult withRelayId(String relayId) { setRelayId(relayId); return this; } /** *

* The unique name of the relay. *

* * @param relayName * The unique name of the relay. */ public void setRelayName(String relayName) { this.relayName = relayName; } /** *

* The unique name of the relay. *

* * @return The unique name of the relay. */ public String getRelayName() { return this.relayName; } /** *

* The unique name of the relay. *

* * @param relayName * The unique name of the relay. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRelayResult withRelayName(String relayName) { setRelayName(relayName); return this; } /** *

* The destination relay server address. *

* * @param serverName * The destination relay server address. */ public void setServerName(String serverName) { this.serverName = serverName; } /** *

* The destination relay server address. *

* * @return The destination relay server address. */ public String getServerName() { return this.serverName; } /** *

* The destination relay server address. *

* * @param serverName * The destination relay server address. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRelayResult withServerName(String serverName) { setServerName(serverName); return this; } /** *

* The destination relay server port. *

* * @param serverPort * The destination relay server port. */ public void setServerPort(Integer serverPort) { this.serverPort = serverPort; } /** *

* The destination relay server port. *

* * @return The destination relay server port. */ public Integer getServerPort() { return this.serverPort; } /** *

* The destination relay server port. *

* * @param serverPort * The destination relay server port. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRelayResult withServerPort(Integer serverPort) { setServerPort(serverPort); 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 (getAuthentication() != null) sb.append("Authentication: ").append(getAuthentication()).append(","); if (getCreatedTimestamp() != null) sb.append("CreatedTimestamp: ").append(getCreatedTimestamp()).append(","); if (getLastModifiedTimestamp() != null) sb.append("LastModifiedTimestamp: ").append(getLastModifiedTimestamp()).append(","); if (getRelayArn() != null) sb.append("RelayArn: ").append(getRelayArn()).append(","); if (getRelayId() != null) sb.append("RelayId: ").append(getRelayId()).append(","); if (getRelayName() != null) sb.append("RelayName: ").append(getRelayName()).append(","); if (getServerName() != null) sb.append("ServerName: ").append(getServerName()).append(","); if (getServerPort() != null) sb.append("ServerPort: ").append(getServerPort()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetRelayResult == false) return false; GetRelayResult other = (GetRelayResult) obj; if (other.getAuthentication() == null ^ this.getAuthentication() == null) return false; if (other.getAuthentication() != null && other.getAuthentication().equals(this.getAuthentication()) == false) return false; if (other.getCreatedTimestamp() == null ^ this.getCreatedTimestamp() == null) return false; if (other.getCreatedTimestamp() != null && other.getCreatedTimestamp().equals(this.getCreatedTimestamp()) == false) return false; if (other.getLastModifiedTimestamp() == null ^ this.getLastModifiedTimestamp() == null) return false; if (other.getLastModifiedTimestamp() != null && other.getLastModifiedTimestamp().equals(this.getLastModifiedTimestamp()) == false) return false; if (other.getRelayArn() == null ^ this.getRelayArn() == null) return false; if (other.getRelayArn() != null && other.getRelayArn().equals(this.getRelayArn()) == false) return false; if (other.getRelayId() == null ^ this.getRelayId() == null) return false; if (other.getRelayId() != null && other.getRelayId().equals(this.getRelayId()) == false) return false; if (other.getRelayName() == null ^ this.getRelayName() == null) return false; if (other.getRelayName() != null && other.getRelayName().equals(this.getRelayName()) == false) return false; if (other.getServerName() == null ^ this.getServerName() == null) return false; if (other.getServerName() != null && other.getServerName().equals(this.getServerName()) == false) return false; if (other.getServerPort() == null ^ this.getServerPort() == null) return false; if (other.getServerPort() != null && other.getServerPort().equals(this.getServerPort()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAuthentication() == null) ? 0 : getAuthentication().hashCode()); hashCode = prime * hashCode + ((getCreatedTimestamp() == null) ? 0 : getCreatedTimestamp().hashCode()); hashCode = prime * hashCode + ((getLastModifiedTimestamp() == null) ? 0 : getLastModifiedTimestamp().hashCode()); hashCode = prime * hashCode + ((getRelayArn() == null) ? 0 : getRelayArn().hashCode()); hashCode = prime * hashCode + ((getRelayId() == null) ? 0 : getRelayId().hashCode()); hashCode = prime * hashCode + ((getRelayName() == null) ? 0 : getRelayName().hashCode()); hashCode = prime * hashCode + ((getServerName() == null) ? 0 : getServerName().hashCode()); hashCode = prime * hashCode + ((getServerPort() == null) ? 0 : getServerPort().hashCode()); return hashCode; } @Override public GetRelayResult clone() { try { return (GetRelayResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy