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

com.amazonaws.services.directory.model.RadiusSettings Maven / Gradle / Ivy

Go to download

The AWS SDK for Java with support for OSGi. The AWS SDK for Java provides Java APIs for building software on AWS' cost-effective, scalable, and reliable infrastructure products. The AWS Java SDK allows developers to code against APIs for all of Amazon's infrastructure web services (Amazon S3, Amazon EC2, Amazon SQS, Amazon Relational Database Service, Amazon AutoScaling, etc).

There is a newer version: 1.11.60
Show newest version
/*
 * Copyright 2011-2016 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.directory.model;

import java.io.Serializable;

/**
 * 

* Contains information about a Remote Authentication Dial In User Service * (RADIUS) server. *

*/ public class RadiusSettings implements Serializable, Cloneable { /** *

* An array of strings that contains the IP addresses of the RADIUS server * endpoints, or the IP addresses of your RADIUS server load balancer. *

*/ private com.amazonaws.internal.SdkInternalList radiusServers; /** *

* The port that your RADIUS server is using for communications. Your * on-premises network must allow inbound traffic over this port from the * AWS Directory Service servers. *

*/ private Integer radiusPort; /** *

* The amount of time, in seconds, to wait for the RADIUS server to respond. *

*/ private Integer radiusTimeout; /** *

* The maximum number of times that communication with the RADIUS server is * attempted. *

*/ private Integer radiusRetries; /** *

* The shared secret code that was specified when your RADIUS endpoints were * created. *

*/ private String sharedSecret; /** *

* The protocol specified for your RADIUS endpoints. *

*/ private String authenticationProtocol; /** *

* Not currently used. *

*/ private String displayLabel; /** *

* Not currently used. *

*/ private Boolean useSameUsername; /** *

* An array of strings that contains the IP addresses of the RADIUS server * endpoints, or the IP addresses of your RADIUS server load balancer. *

* * @return An array of strings that contains the IP addresses of the RADIUS * server endpoints, or the IP addresses of your RADIUS server load * balancer. */ public java.util.List getRadiusServers() { if (radiusServers == null) { radiusServers = new com.amazonaws.internal.SdkInternalList(); } return radiusServers; } /** *

* An array of strings that contains the IP addresses of the RADIUS server * endpoints, or the IP addresses of your RADIUS server load balancer. *

* * @param radiusServers * An array of strings that contains the IP addresses of the RADIUS * server endpoints, or the IP addresses of your RADIUS server load * balancer. */ public void setRadiusServers(java.util.Collection radiusServers) { if (radiusServers == null) { this.radiusServers = null; return; } this.radiusServers = new com.amazonaws.internal.SdkInternalList( radiusServers); } /** *

* An array of strings that contains the IP addresses of the RADIUS server * endpoints, or the IP addresses of your RADIUS server load balancer. *

*

* NOTE: This method appends the values to the existing list (if * any). Use {@link #setRadiusServers(java.util.Collection)} or * {@link #withRadiusServers(java.util.Collection)} if you want to override * the existing values. *

* * @param radiusServers * An array of strings that contains the IP addresses of the RADIUS * server endpoints, or the IP addresses of your RADIUS server load * balancer. * @return Returns a reference to this object so that method calls can be * chained together. */ public RadiusSettings withRadiusServers(String... radiusServers) { if (this.radiusServers == null) { setRadiusServers(new com.amazonaws.internal.SdkInternalList( radiusServers.length)); } for (String ele : radiusServers) { this.radiusServers.add(ele); } return this; } /** *

* An array of strings that contains the IP addresses of the RADIUS server * endpoints, or the IP addresses of your RADIUS server load balancer. *

* * @param radiusServers * An array of strings that contains the IP addresses of the RADIUS * server endpoints, or the IP addresses of your RADIUS server load * balancer. * @return Returns a reference to this object so that method calls can be * chained together. */ public RadiusSettings withRadiusServers( java.util.Collection radiusServers) { setRadiusServers(radiusServers); return this; } /** *

* The port that your RADIUS server is using for communications. Your * on-premises network must allow inbound traffic over this port from the * AWS Directory Service servers. *

* * @param radiusPort * The port that your RADIUS server is using for communications. Your * on-premises network must allow inbound traffic over this port from * the AWS Directory Service servers. */ public void setRadiusPort(Integer radiusPort) { this.radiusPort = radiusPort; } /** *

* The port that your RADIUS server is using for communications. Your * on-premises network must allow inbound traffic over this port from the * AWS Directory Service servers. *

* * @return The port that your RADIUS server is using for communications. * Your on-premises network must allow inbound traffic over this * port from the AWS Directory Service servers. */ public Integer getRadiusPort() { return this.radiusPort; } /** *

* The port that your RADIUS server is using for communications. Your * on-premises network must allow inbound traffic over this port from the * AWS Directory Service servers. *

* * @param radiusPort * The port that your RADIUS server is using for communications. Your * on-premises network must allow inbound traffic over this port from * the AWS Directory Service servers. * @return Returns a reference to this object so that method calls can be * chained together. */ public RadiusSettings withRadiusPort(Integer radiusPort) { setRadiusPort(radiusPort); return this; } /** *

* The amount of time, in seconds, to wait for the RADIUS server to respond. *

* * @param radiusTimeout * The amount of time, in seconds, to wait for the RADIUS server to * respond. */ public void setRadiusTimeout(Integer radiusTimeout) { this.radiusTimeout = radiusTimeout; } /** *

* The amount of time, in seconds, to wait for the RADIUS server to respond. *

* * @return The amount of time, in seconds, to wait for the RADIUS server to * respond. */ public Integer getRadiusTimeout() { return this.radiusTimeout; } /** *

* The amount of time, in seconds, to wait for the RADIUS server to respond. *

* * @param radiusTimeout * The amount of time, in seconds, to wait for the RADIUS server to * respond. * @return Returns a reference to this object so that method calls can be * chained together. */ public RadiusSettings withRadiusTimeout(Integer radiusTimeout) { setRadiusTimeout(radiusTimeout); return this; } /** *

* The maximum number of times that communication with the RADIUS server is * attempted. *

* * @param radiusRetries * The maximum number of times that communication with the RADIUS * server is attempted. */ public void setRadiusRetries(Integer radiusRetries) { this.radiusRetries = radiusRetries; } /** *

* The maximum number of times that communication with the RADIUS server is * attempted. *

* * @return The maximum number of times that communication with the RADIUS * server is attempted. */ public Integer getRadiusRetries() { return this.radiusRetries; } /** *

* The maximum number of times that communication with the RADIUS server is * attempted. *

* * @param radiusRetries * The maximum number of times that communication with the RADIUS * server is attempted. * @return Returns a reference to this object so that method calls can be * chained together. */ public RadiusSettings withRadiusRetries(Integer radiusRetries) { setRadiusRetries(radiusRetries); return this; } /** *

* The shared secret code that was specified when your RADIUS endpoints were * created. *

* * @param sharedSecret * The shared secret code that was specified when your RADIUS * endpoints were created. */ public void setSharedSecret(String sharedSecret) { this.sharedSecret = sharedSecret; } /** *

* The shared secret code that was specified when your RADIUS endpoints were * created. *

* * @return The shared secret code that was specified when your RADIUS * endpoints were created. */ public String getSharedSecret() { return this.sharedSecret; } /** *

* The shared secret code that was specified when your RADIUS endpoints were * created. *

* * @param sharedSecret * The shared secret code that was specified when your RADIUS * endpoints were created. * @return Returns a reference to this object so that method calls can be * chained together. */ public RadiusSettings withSharedSecret(String sharedSecret) { setSharedSecret(sharedSecret); return this; } /** *

* The protocol specified for your RADIUS endpoints. *

* * @param authenticationProtocol * The protocol specified for your RADIUS endpoints. * @see RadiusAuthenticationProtocol */ public void setAuthenticationProtocol(String authenticationProtocol) { this.authenticationProtocol = authenticationProtocol; } /** *

* The protocol specified for your RADIUS endpoints. *

* * @return The protocol specified for your RADIUS endpoints. * @see RadiusAuthenticationProtocol */ public String getAuthenticationProtocol() { return this.authenticationProtocol; } /** *

* The protocol specified for your RADIUS endpoints. *

* * @param authenticationProtocol * The protocol specified for your RADIUS endpoints. * @return Returns a reference to this object so that method calls can be * chained together. * @see RadiusAuthenticationProtocol */ public RadiusSettings withAuthenticationProtocol( String authenticationProtocol) { setAuthenticationProtocol(authenticationProtocol); return this; } /** *

* The protocol specified for your RADIUS endpoints. *

* * @param authenticationProtocol * The protocol specified for your RADIUS endpoints. * @see RadiusAuthenticationProtocol */ public void setAuthenticationProtocol( RadiusAuthenticationProtocol authenticationProtocol) { this.authenticationProtocol = authenticationProtocol.toString(); } /** *

* The protocol specified for your RADIUS endpoints. *

* * @param authenticationProtocol * The protocol specified for your RADIUS endpoints. * @return Returns a reference to this object so that method calls can be * chained together. * @see RadiusAuthenticationProtocol */ public RadiusSettings withAuthenticationProtocol( RadiusAuthenticationProtocol authenticationProtocol) { setAuthenticationProtocol(authenticationProtocol); return this; } /** *

* Not currently used. *

* * @param displayLabel * Not currently used. */ public void setDisplayLabel(String displayLabel) { this.displayLabel = displayLabel; } /** *

* Not currently used. *

* * @return Not currently used. */ public String getDisplayLabel() { return this.displayLabel; } /** *

* Not currently used. *

* * @param displayLabel * Not currently used. * @return Returns a reference to this object so that method calls can be * chained together. */ public RadiusSettings withDisplayLabel(String displayLabel) { setDisplayLabel(displayLabel); return this; } /** *

* Not currently used. *

* * @param useSameUsername * Not currently used. */ public void setUseSameUsername(Boolean useSameUsername) { this.useSameUsername = useSameUsername; } /** *

* Not currently used. *

* * @return Not currently used. */ public Boolean getUseSameUsername() { return this.useSameUsername; } /** *

* Not currently used. *

* * @param useSameUsername * Not currently used. * @return Returns a reference to this object so that method calls can be * chained together. */ public RadiusSettings withUseSameUsername(Boolean useSameUsername) { setUseSameUsername(useSameUsername); return this; } /** *

* Not currently used. *

* * @return Not currently used. */ public Boolean isUseSameUsername() { return this.useSameUsername; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getRadiusServers() != null) sb.append("RadiusServers: " + getRadiusServers() + ","); if (getRadiusPort() != null) sb.append("RadiusPort: " + getRadiusPort() + ","); if (getRadiusTimeout() != null) sb.append("RadiusTimeout: " + getRadiusTimeout() + ","); if (getRadiusRetries() != null) sb.append("RadiusRetries: " + getRadiusRetries() + ","); if (getSharedSecret() != null) sb.append("SharedSecret: " + getSharedSecret() + ","); if (getAuthenticationProtocol() != null) sb.append("AuthenticationProtocol: " + getAuthenticationProtocol() + ","); if (getDisplayLabel() != null) sb.append("DisplayLabel: " + getDisplayLabel() + ","); if (getUseSameUsername() != null) sb.append("UseSameUsername: " + getUseSameUsername()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof RadiusSettings == false) return false; RadiusSettings other = (RadiusSettings) obj; if (other.getRadiusServers() == null ^ this.getRadiusServers() == null) return false; if (other.getRadiusServers() != null && other.getRadiusServers().equals(this.getRadiusServers()) == false) return false; if (other.getRadiusPort() == null ^ this.getRadiusPort() == null) return false; if (other.getRadiusPort() != null && other.getRadiusPort().equals(this.getRadiusPort()) == false) return false; if (other.getRadiusTimeout() == null ^ this.getRadiusTimeout() == null) return false; if (other.getRadiusTimeout() != null && other.getRadiusTimeout().equals(this.getRadiusTimeout()) == false) return false; if (other.getRadiusRetries() == null ^ this.getRadiusRetries() == null) return false; if (other.getRadiusRetries() != null && other.getRadiusRetries().equals(this.getRadiusRetries()) == false) return false; if (other.getSharedSecret() == null ^ this.getSharedSecret() == null) return false; if (other.getSharedSecret() != null && other.getSharedSecret().equals(this.getSharedSecret()) == false) return false; if (other.getAuthenticationProtocol() == null ^ this.getAuthenticationProtocol() == null) return false; if (other.getAuthenticationProtocol() != null && other.getAuthenticationProtocol().equals( this.getAuthenticationProtocol()) == false) return false; if (other.getDisplayLabel() == null ^ this.getDisplayLabel() == null) return false; if (other.getDisplayLabel() != null && other.getDisplayLabel().equals(this.getDisplayLabel()) == false) return false; if (other.getUseSameUsername() == null ^ this.getUseSameUsername() == null) return false; if (other.getUseSameUsername() != null && other.getUseSameUsername().equals(this.getUseSameUsername()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getRadiusServers() == null) ? 0 : getRadiusServers() .hashCode()); hashCode = prime * hashCode + ((getRadiusPort() == null) ? 0 : getRadiusPort().hashCode()); hashCode = prime * hashCode + ((getRadiusTimeout() == null) ? 0 : getRadiusTimeout() .hashCode()); hashCode = prime * hashCode + ((getRadiusRetries() == null) ? 0 : getRadiusRetries() .hashCode()); hashCode = prime * hashCode + ((getSharedSecret() == null) ? 0 : getSharedSecret() .hashCode()); hashCode = prime * hashCode + ((getAuthenticationProtocol() == null) ? 0 : getAuthenticationProtocol().hashCode()); hashCode = prime * hashCode + ((getDisplayLabel() == null) ? 0 : getDisplayLabel() .hashCode()); hashCode = prime * hashCode + ((getUseSameUsername() == null) ? 0 : getUseSameUsername() .hashCode()); return hashCode; } @Override public RadiusSettings clone() { try { return (RadiusSettings) 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