
com.amazonaws.services.kafka.model.VpcConnectionInfoServerless Maven / Gradle / Ivy
/*
* 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.kafka.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
* Description of the VPC connection.
*
* @see AWS
* API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class VpcConnectionInfoServerless implements Serializable, Cloneable, StructuredPojo {
/**
*
* The time when Amazon MSK creates the VPC Connnection.
*
*/
private java.util.Date creationTime;
/**
*
* The owner of the VPC Connection.
*
*/
private String owner;
/**
*
* Description of the requester that calls the API operation.
*
*/
private UserIdentity userIdentity;
/**
*
* The Amazon Resource Name (ARN) of the VPC connection.
*
*/
private String vpcConnectionArn;
/**
*
* The time when Amazon MSK creates the VPC Connnection.
*
*
* @param creationTime
*
* The time when Amazon MSK creates the VPC Connnection.
*
*/
public void setCreationTime(java.util.Date creationTime) {
this.creationTime = creationTime;
}
/**
*
* The time when Amazon MSK creates the VPC Connnection.
*
*
* @return
* The time when Amazon MSK creates the VPC Connnection.
*
*/
public java.util.Date getCreationTime() {
return this.creationTime;
}
/**
*
* The time when Amazon MSK creates the VPC Connnection.
*
*
* @param creationTime
*
* The time when Amazon MSK creates the VPC Connnection.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public VpcConnectionInfoServerless withCreationTime(java.util.Date creationTime) {
setCreationTime(creationTime);
return this;
}
/**
*
* The owner of the VPC Connection.
*
*
* @param owner
*
* The owner of the VPC Connection.
*
*/
public void setOwner(String owner) {
this.owner = owner;
}
/**
*
* The owner of the VPC Connection.
*
*
* @return
* The owner of the VPC Connection.
*
*/
public String getOwner() {
return this.owner;
}
/**
*
* The owner of the VPC Connection.
*
*
* @param owner
*
* The owner of the VPC Connection.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public VpcConnectionInfoServerless withOwner(String owner) {
setOwner(owner);
return this;
}
/**
*
* Description of the requester that calls the API operation.
*
*
* @param userIdentity
*
* Description of the requester that calls the API operation.
*
*/
public void setUserIdentity(UserIdentity userIdentity) {
this.userIdentity = userIdentity;
}
/**
*
* Description of the requester that calls the API operation.
*
*
* @return
* Description of the requester that calls the API operation.
*
*/
public UserIdentity getUserIdentity() {
return this.userIdentity;
}
/**
*
* Description of the requester that calls the API operation.
*
*
* @param userIdentity
*
* Description of the requester that calls the API operation.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public VpcConnectionInfoServerless withUserIdentity(UserIdentity userIdentity) {
setUserIdentity(userIdentity);
return this;
}
/**
*
* The Amazon Resource Name (ARN) of the VPC connection.
*
*
* @param vpcConnectionArn
*
* The Amazon Resource Name (ARN) of the VPC connection.
*
*/
public void setVpcConnectionArn(String vpcConnectionArn) {
this.vpcConnectionArn = vpcConnectionArn;
}
/**
*
* The Amazon Resource Name (ARN) of the VPC connection.
*
*
* @return
* The Amazon Resource Name (ARN) of the VPC connection.
*
*/
public String getVpcConnectionArn() {
return this.vpcConnectionArn;
}
/**
*
* The Amazon Resource Name (ARN) of the VPC connection.
*
*
* @param vpcConnectionArn
*
* The Amazon Resource Name (ARN) of the VPC connection.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public VpcConnectionInfoServerless withVpcConnectionArn(String vpcConnectionArn) {
setVpcConnectionArn(vpcConnectionArn);
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 (getCreationTime() != null)
sb.append("CreationTime: ").append(getCreationTime()).append(",");
if (getOwner() != null)
sb.append("Owner: ").append(getOwner()).append(",");
if (getUserIdentity() != null)
sb.append("UserIdentity: ").append(getUserIdentity()).append(",");
if (getVpcConnectionArn() != null)
sb.append("VpcConnectionArn: ").append(getVpcConnectionArn());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof VpcConnectionInfoServerless == false)
return false;
VpcConnectionInfoServerless other = (VpcConnectionInfoServerless) obj;
if (other.getCreationTime() == null ^ this.getCreationTime() == null)
return false;
if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == false)
return false;
if (other.getOwner() == null ^ this.getOwner() == null)
return false;
if (other.getOwner() != null && other.getOwner().equals(this.getOwner()) == false)
return false;
if (other.getUserIdentity() == null ^ this.getUserIdentity() == null)
return false;
if (other.getUserIdentity() != null && other.getUserIdentity().equals(this.getUserIdentity()) == false)
return false;
if (other.getVpcConnectionArn() == null ^ this.getVpcConnectionArn() == null)
return false;
if (other.getVpcConnectionArn() != null && other.getVpcConnectionArn().equals(this.getVpcConnectionArn()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode());
hashCode = prime * hashCode + ((getOwner() == null) ? 0 : getOwner().hashCode());
hashCode = prime * hashCode + ((getUserIdentity() == null) ? 0 : getUserIdentity().hashCode());
hashCode = prime * hashCode + ((getVpcConnectionArn() == null) ? 0 : getVpcConnectionArn().hashCode());
return hashCode;
}
@Override
public VpcConnectionInfoServerless clone() {
try {
return (VpcConnectionInfoServerless) 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.kafka.model.transform.VpcConnectionInfoServerlessMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}