com.amazonaws.services.private5g.model.ConfigureAccessPointRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-private5g Show documentation
/*
* 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.private5g.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.AmazonWebServiceRequest;
/**
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ConfigureAccessPointRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The Amazon Resource Name (ARN) of the network resource.
*
*/
private String accessPointArn;
/**
*
* A Base64 encoded string of the CPI certificate associated with the CPI user who is certifying the coordinates of
* the network resource.
*
*/
private String cpiSecretKey;
/**
*
* The CPI user ID of the CPI user who is certifying the coordinates of the network resource.
*
*/
private String cpiUserId;
/**
*
* The CPI password associated with the CPI certificate in cpiSecretKey
.
*
*/
private String cpiUserPassword;
/**
*
* The CPI user name of the CPI user who is certifying the coordinates of the radio unit.
*
*/
private String cpiUsername;
/**
*
* The position of the network resource.
*
*/
private Position position;
/**
*
* The Amazon Resource Name (ARN) of the network resource.
*
*
* @param accessPointArn
* The Amazon Resource Name (ARN) of the network resource.
*/
public void setAccessPointArn(String accessPointArn) {
this.accessPointArn = accessPointArn;
}
/**
*
* The Amazon Resource Name (ARN) of the network resource.
*
*
* @return The Amazon Resource Name (ARN) of the network resource.
*/
public String getAccessPointArn() {
return this.accessPointArn;
}
/**
*
* The Amazon Resource Name (ARN) of the network resource.
*
*
* @param accessPointArn
* The Amazon Resource Name (ARN) of the network resource.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ConfigureAccessPointRequest withAccessPointArn(String accessPointArn) {
setAccessPointArn(accessPointArn);
return this;
}
/**
*
* A Base64 encoded string of the CPI certificate associated with the CPI user who is certifying the coordinates of
* the network resource.
*
*
* @param cpiSecretKey
* A Base64 encoded string of the CPI certificate associated with the CPI user who is certifying the
* coordinates of the network resource.
*/
public void setCpiSecretKey(String cpiSecretKey) {
this.cpiSecretKey = cpiSecretKey;
}
/**
*
* A Base64 encoded string of the CPI certificate associated with the CPI user who is certifying the coordinates of
* the network resource.
*
*
* @return A Base64 encoded string of the CPI certificate associated with the CPI user who is certifying the
* coordinates of the network resource.
*/
public String getCpiSecretKey() {
return this.cpiSecretKey;
}
/**
*
* A Base64 encoded string of the CPI certificate associated with the CPI user who is certifying the coordinates of
* the network resource.
*
*
* @param cpiSecretKey
* A Base64 encoded string of the CPI certificate associated with the CPI user who is certifying the
* coordinates of the network resource.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ConfigureAccessPointRequest withCpiSecretKey(String cpiSecretKey) {
setCpiSecretKey(cpiSecretKey);
return this;
}
/**
*
* The CPI user ID of the CPI user who is certifying the coordinates of the network resource.
*
*
* @param cpiUserId
* The CPI user ID of the CPI user who is certifying the coordinates of the network resource.
*/
public void setCpiUserId(String cpiUserId) {
this.cpiUserId = cpiUserId;
}
/**
*
* The CPI user ID of the CPI user who is certifying the coordinates of the network resource.
*
*
* @return The CPI user ID of the CPI user who is certifying the coordinates of the network resource.
*/
public String getCpiUserId() {
return this.cpiUserId;
}
/**
*
* The CPI user ID of the CPI user who is certifying the coordinates of the network resource.
*
*
* @param cpiUserId
* The CPI user ID of the CPI user who is certifying the coordinates of the network resource.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ConfigureAccessPointRequest withCpiUserId(String cpiUserId) {
setCpiUserId(cpiUserId);
return this;
}
/**
*
* The CPI password associated with the CPI certificate in cpiSecretKey
.
*
*
* @param cpiUserPassword
* The CPI password associated with the CPI certificate in cpiSecretKey
.
*/
public void setCpiUserPassword(String cpiUserPassword) {
this.cpiUserPassword = cpiUserPassword;
}
/**
*
* The CPI password associated with the CPI certificate in cpiSecretKey
.
*
*
* @return The CPI password associated with the CPI certificate in cpiSecretKey
.
*/
public String getCpiUserPassword() {
return this.cpiUserPassword;
}
/**
*
* The CPI password associated with the CPI certificate in cpiSecretKey
.
*
*
* @param cpiUserPassword
* The CPI password associated with the CPI certificate in cpiSecretKey
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ConfigureAccessPointRequest withCpiUserPassword(String cpiUserPassword) {
setCpiUserPassword(cpiUserPassword);
return this;
}
/**
*
* The CPI user name of the CPI user who is certifying the coordinates of the radio unit.
*
*
* @param cpiUsername
* The CPI user name of the CPI user who is certifying the coordinates of the radio unit.
*/
public void setCpiUsername(String cpiUsername) {
this.cpiUsername = cpiUsername;
}
/**
*
* The CPI user name of the CPI user who is certifying the coordinates of the radio unit.
*
*
* @return The CPI user name of the CPI user who is certifying the coordinates of the radio unit.
*/
public String getCpiUsername() {
return this.cpiUsername;
}
/**
*
* The CPI user name of the CPI user who is certifying the coordinates of the radio unit.
*
*
* @param cpiUsername
* The CPI user name of the CPI user who is certifying the coordinates of the radio unit.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ConfigureAccessPointRequest withCpiUsername(String cpiUsername) {
setCpiUsername(cpiUsername);
return this;
}
/**
*
* The position of the network resource.
*
*
* @param position
* The position of the network resource.
*/
public void setPosition(Position position) {
this.position = position;
}
/**
*
* The position of the network resource.
*
*
* @return The position of the network resource.
*/
public Position getPosition() {
return this.position;
}
/**
*
* The position of the network resource.
*
*
* @param position
* The position of the network resource.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ConfigureAccessPointRequest withPosition(Position position) {
setPosition(position);
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 (getAccessPointArn() != null)
sb.append("AccessPointArn: ").append(getAccessPointArn()).append(",");
if (getCpiSecretKey() != null)
sb.append("CpiSecretKey: ").append("***Sensitive Data Redacted***").append(",");
if (getCpiUserId() != null)
sb.append("CpiUserId: ").append("***Sensitive Data Redacted***").append(",");
if (getCpiUserPassword() != null)
sb.append("CpiUserPassword: ").append("***Sensitive Data Redacted***").append(",");
if (getCpiUsername() != null)
sb.append("CpiUsername: ").append("***Sensitive Data Redacted***").append(",");
if (getPosition() != null)
sb.append("Position: ").append(getPosition());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof ConfigureAccessPointRequest == false)
return false;
ConfigureAccessPointRequest other = (ConfigureAccessPointRequest) obj;
if (other.getAccessPointArn() == null ^ this.getAccessPointArn() == null)
return false;
if (other.getAccessPointArn() != null && other.getAccessPointArn().equals(this.getAccessPointArn()) == false)
return false;
if (other.getCpiSecretKey() == null ^ this.getCpiSecretKey() == null)
return false;
if (other.getCpiSecretKey() != null && other.getCpiSecretKey().equals(this.getCpiSecretKey()) == false)
return false;
if (other.getCpiUserId() == null ^ this.getCpiUserId() == null)
return false;
if (other.getCpiUserId() != null && other.getCpiUserId().equals(this.getCpiUserId()) == false)
return false;
if (other.getCpiUserPassword() == null ^ this.getCpiUserPassword() == null)
return false;
if (other.getCpiUserPassword() != null && other.getCpiUserPassword().equals(this.getCpiUserPassword()) == false)
return false;
if (other.getCpiUsername() == null ^ this.getCpiUsername() == null)
return false;
if (other.getCpiUsername() != null && other.getCpiUsername().equals(this.getCpiUsername()) == false)
return false;
if (other.getPosition() == null ^ this.getPosition() == null)
return false;
if (other.getPosition() != null && other.getPosition().equals(this.getPosition()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getAccessPointArn() == null) ? 0 : getAccessPointArn().hashCode());
hashCode = prime * hashCode + ((getCpiSecretKey() == null) ? 0 : getCpiSecretKey().hashCode());
hashCode = prime * hashCode + ((getCpiUserId() == null) ? 0 : getCpiUserId().hashCode());
hashCode = prime * hashCode + ((getCpiUserPassword() == null) ? 0 : getCpiUserPassword().hashCode());
hashCode = prime * hashCode + ((getCpiUsername() == null) ? 0 : getCpiUsername().hashCode());
hashCode = prime * hashCode + ((getPosition() == null) ? 0 : getPosition().hashCode());
return hashCode;
}
@Override
public ConfigureAccessPointRequest clone() {
return (ConfigureAccessPointRequest) super.clone();
}
}