com.amazonaws.services.devicefarm.model.CreateVPCEConfigurationRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-devicefarm 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.devicefarm.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 CreateVPCEConfigurationRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The friendly name you give to your VPC endpoint configuration, to manage your configurations more easily.
*
*/
private String vpceConfigurationName;
/**
*
* The name of the VPC endpoint service running in your AWS account that you want Device Farm to test.
*
*/
private String vpceServiceName;
/**
*
* The DNS name of the service running in your VPC that you want Device Farm to test.
*
*/
private String serviceDnsName;
/**
*
* An optional description that provides details about your VPC endpoint configuration.
*
*/
private String vpceConfigurationDescription;
/**
*
* The friendly name you give to your VPC endpoint configuration, to manage your configurations more easily.
*
*
* @param vpceConfigurationName
* The friendly name you give to your VPC endpoint configuration, to manage your configurations more easily.
*/
public void setVpceConfigurationName(String vpceConfigurationName) {
this.vpceConfigurationName = vpceConfigurationName;
}
/**
*
* The friendly name you give to your VPC endpoint configuration, to manage your configurations more easily.
*
*
* @return The friendly name you give to your VPC endpoint configuration, to manage your configurations more easily.
*/
public String getVpceConfigurationName() {
return this.vpceConfigurationName;
}
/**
*
* The friendly name you give to your VPC endpoint configuration, to manage your configurations more easily.
*
*
* @param vpceConfigurationName
* The friendly name you give to your VPC endpoint configuration, to manage your configurations more easily.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateVPCEConfigurationRequest withVpceConfigurationName(String vpceConfigurationName) {
setVpceConfigurationName(vpceConfigurationName);
return this;
}
/**
*
* The name of the VPC endpoint service running in your AWS account that you want Device Farm to test.
*
*
* @param vpceServiceName
* The name of the VPC endpoint service running in your AWS account that you want Device Farm to test.
*/
public void setVpceServiceName(String vpceServiceName) {
this.vpceServiceName = vpceServiceName;
}
/**
*
* The name of the VPC endpoint service running in your AWS account that you want Device Farm to test.
*
*
* @return The name of the VPC endpoint service running in your AWS account that you want Device Farm to test.
*/
public String getVpceServiceName() {
return this.vpceServiceName;
}
/**
*
* The name of the VPC endpoint service running in your AWS account that you want Device Farm to test.
*
*
* @param vpceServiceName
* The name of the VPC endpoint service running in your AWS account that you want Device Farm to test.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateVPCEConfigurationRequest withVpceServiceName(String vpceServiceName) {
setVpceServiceName(vpceServiceName);
return this;
}
/**
*
* The DNS name of the service running in your VPC that you want Device Farm to test.
*
*
* @param serviceDnsName
* The DNS name of the service running in your VPC that you want Device Farm to test.
*/
public void setServiceDnsName(String serviceDnsName) {
this.serviceDnsName = serviceDnsName;
}
/**
*
* The DNS name of the service running in your VPC that you want Device Farm to test.
*
*
* @return The DNS name of the service running in your VPC that you want Device Farm to test.
*/
public String getServiceDnsName() {
return this.serviceDnsName;
}
/**
*
* The DNS name of the service running in your VPC that you want Device Farm to test.
*
*
* @param serviceDnsName
* The DNS name of the service running in your VPC that you want Device Farm to test.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateVPCEConfigurationRequest withServiceDnsName(String serviceDnsName) {
setServiceDnsName(serviceDnsName);
return this;
}
/**
*
* An optional description that provides details about your VPC endpoint configuration.
*
*
* @param vpceConfigurationDescription
* An optional description that provides details about your VPC endpoint configuration.
*/
public void setVpceConfigurationDescription(String vpceConfigurationDescription) {
this.vpceConfigurationDescription = vpceConfigurationDescription;
}
/**
*
* An optional description that provides details about your VPC endpoint configuration.
*
*
* @return An optional description that provides details about your VPC endpoint configuration.
*/
public String getVpceConfigurationDescription() {
return this.vpceConfigurationDescription;
}
/**
*
* An optional description that provides details about your VPC endpoint configuration.
*
*
* @param vpceConfigurationDescription
* An optional description that provides details about your VPC endpoint configuration.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateVPCEConfigurationRequest withVpceConfigurationDescription(String vpceConfigurationDescription) {
setVpceConfigurationDescription(vpceConfigurationDescription);
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 (getVpceConfigurationName() != null)
sb.append("VpceConfigurationName: ").append(getVpceConfigurationName()).append(",");
if (getVpceServiceName() != null)
sb.append("VpceServiceName: ").append(getVpceServiceName()).append(",");
if (getServiceDnsName() != null)
sb.append("ServiceDnsName: ").append(getServiceDnsName()).append(",");
if (getVpceConfigurationDescription() != null)
sb.append("VpceConfigurationDescription: ").append(getVpceConfigurationDescription());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof CreateVPCEConfigurationRequest == false)
return false;
CreateVPCEConfigurationRequest other = (CreateVPCEConfigurationRequest) obj;
if (other.getVpceConfigurationName() == null ^ this.getVpceConfigurationName() == null)
return false;
if (other.getVpceConfigurationName() != null && other.getVpceConfigurationName().equals(this.getVpceConfigurationName()) == false)
return false;
if (other.getVpceServiceName() == null ^ this.getVpceServiceName() == null)
return false;
if (other.getVpceServiceName() != null && other.getVpceServiceName().equals(this.getVpceServiceName()) == false)
return false;
if (other.getServiceDnsName() == null ^ this.getServiceDnsName() == null)
return false;
if (other.getServiceDnsName() != null && other.getServiceDnsName().equals(this.getServiceDnsName()) == false)
return false;
if (other.getVpceConfigurationDescription() == null ^ this.getVpceConfigurationDescription() == null)
return false;
if (other.getVpceConfigurationDescription() != null && other.getVpceConfigurationDescription().equals(this.getVpceConfigurationDescription()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getVpceConfigurationName() == null) ? 0 : getVpceConfigurationName().hashCode());
hashCode = prime * hashCode + ((getVpceServiceName() == null) ? 0 : getVpceServiceName().hashCode());
hashCode = prime * hashCode + ((getServiceDnsName() == null) ? 0 : getServiceDnsName().hashCode());
hashCode = prime * hashCode + ((getVpceConfigurationDescription() == null) ? 0 : getVpceConfigurationDescription().hashCode());
return hashCode;
}
@Override
public CreateVPCEConfigurationRequest clone() {
return (CreateVPCEConfigurationRequest) super.clone();
}
}