com.amazonaws.services.route53resolver.model.FirewallDomainList Maven / Gradle / Ivy
Show all versions of aws-java-sdk-route53resolver Show documentation
/*
* Copyright 2016-2021 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.route53resolver.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* High-level information about a list of firewall domains for use in a FirewallRule. This is returned by
* GetFirewallDomainList.
*
*
* To retrieve the domains that are defined for this domain list, call ListFirewallDomains.
*
*
* @see AWS
* API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class FirewallDomainList implements Serializable, Cloneable, StructuredPojo {
/**
*
* The ID of the domain list.
*
*/
private String id;
/**
*
* The Amazon Resource Name (ARN) of the firewall domain list.
*
*/
private String arn;
/**
*
* The name of the domain list.
*
*/
private String name;
/**
*
* The number of domain names that are specified in the domain list.
*
*/
private Integer domainCount;
/**
*
* The status of the domain list.
*
*/
private String status;
/**
*
* Additional information about the status of the list, if available.
*
*/
private String statusMessage;
/**
*
* The owner of the list, used only for lists that are not managed by you. For example, the managed domain list
* AWSManagedDomainsMalwareDomainList
has the managed owner name
* Route 53 Resolver DNS Firewall
.
*
*/
private String managedOwnerName;
/**
*
* A unique string defined by you to identify the request. This allows you to retry failed requests without the risk
* of running the operation twice. This can be any unique string, for example, a timestamp.
*
*/
private String creatorRequestId;
/**
*
* The date and time that the domain list was created, in Unix time format and Coordinated Universal Time (UTC).
*
*/
private String creationTime;
/**
*
* The date and time that the domain list was last modified, in Unix time format and Coordinated Universal Time
* (UTC).
*
*/
private String modificationTime;
/**
*
* The ID of the domain list.
*
*
* @param id
* The ID of the domain list.
*/
public void setId(String id) {
this.id = id;
}
/**
*
* The ID of the domain list.
*
*
* @return The ID of the domain list.
*/
public String getId() {
return this.id;
}
/**
*
* The ID of the domain list.
*
*
* @param id
* The ID of the domain list.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public FirewallDomainList withId(String id) {
setId(id);
return this;
}
/**
*
* The Amazon Resource Name (ARN) of the firewall domain list.
*
*
* @param arn
* The Amazon Resource Name (ARN) of the firewall domain list.
*/
public void setArn(String arn) {
this.arn = arn;
}
/**
*
* The Amazon Resource Name (ARN) of the firewall domain list.
*
*
* @return The Amazon Resource Name (ARN) of the firewall domain list.
*/
public String getArn() {
return this.arn;
}
/**
*
* The Amazon Resource Name (ARN) of the firewall domain list.
*
*
* @param arn
* The Amazon Resource Name (ARN) of the firewall domain list.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public FirewallDomainList withArn(String arn) {
setArn(arn);
return this;
}
/**
*
* The name of the domain list.
*
*
* @param name
* The name of the domain list.
*/
public void setName(String name) {
this.name = name;
}
/**
*
* The name of the domain list.
*
*
* @return The name of the domain list.
*/
public String getName() {
return this.name;
}
/**
*
* The name of the domain list.
*
*
* @param name
* The name of the domain list.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public FirewallDomainList withName(String name) {
setName(name);
return this;
}
/**
*
* The number of domain names that are specified in the domain list.
*
*
* @param domainCount
* The number of domain names that are specified in the domain list.
*/
public void setDomainCount(Integer domainCount) {
this.domainCount = domainCount;
}
/**
*
* The number of domain names that are specified in the domain list.
*
*
* @return The number of domain names that are specified in the domain list.
*/
public Integer getDomainCount() {
return this.domainCount;
}
/**
*
* The number of domain names that are specified in the domain list.
*
*
* @param domainCount
* The number of domain names that are specified in the domain list.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public FirewallDomainList withDomainCount(Integer domainCount) {
setDomainCount(domainCount);
return this;
}
/**
*
* The status of the domain list.
*
*
* @param status
* The status of the domain list.
* @see FirewallDomainListStatus
*/
public void setStatus(String status) {
this.status = status;
}
/**
*
* The status of the domain list.
*
*
* @return The status of the domain list.
* @see FirewallDomainListStatus
*/
public String getStatus() {
return this.status;
}
/**
*
* The status of the domain list.
*
*
* @param status
* The status of the domain list.
* @return Returns a reference to this object so that method calls can be chained together.
* @see FirewallDomainListStatus
*/
public FirewallDomainList withStatus(String status) {
setStatus(status);
return this;
}
/**
*
* The status of the domain list.
*
*
* @param status
* The status of the domain list.
* @return Returns a reference to this object so that method calls can be chained together.
* @see FirewallDomainListStatus
*/
public FirewallDomainList withStatus(FirewallDomainListStatus status) {
this.status = status.toString();
return this;
}
/**
*
* Additional information about the status of the list, if available.
*
*
* @param statusMessage
* Additional information about the status of the list, if available.
*/
public void setStatusMessage(String statusMessage) {
this.statusMessage = statusMessage;
}
/**
*
* Additional information about the status of the list, if available.
*
*
* @return Additional information about the status of the list, if available.
*/
public String getStatusMessage() {
return this.statusMessage;
}
/**
*
* Additional information about the status of the list, if available.
*
*
* @param statusMessage
* Additional information about the status of the list, if available.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public FirewallDomainList withStatusMessage(String statusMessage) {
setStatusMessage(statusMessage);
return this;
}
/**
*
* The owner of the list, used only for lists that are not managed by you. For example, the managed domain list
* AWSManagedDomainsMalwareDomainList
has the managed owner name
* Route 53 Resolver DNS Firewall
.
*
*
* @param managedOwnerName
* The owner of the list, used only for lists that are not managed by you. For example, the managed domain
* list AWSManagedDomainsMalwareDomainList
has the managed owner name
* Route 53 Resolver DNS Firewall
.
*/
public void setManagedOwnerName(String managedOwnerName) {
this.managedOwnerName = managedOwnerName;
}
/**
*
* The owner of the list, used only for lists that are not managed by you. For example, the managed domain list
* AWSManagedDomainsMalwareDomainList
has the managed owner name
* Route 53 Resolver DNS Firewall
.
*
*
* @return The owner of the list, used only for lists that are not managed by you. For example, the managed domain
* list AWSManagedDomainsMalwareDomainList
has the managed owner name
* Route 53 Resolver DNS Firewall
.
*/
public String getManagedOwnerName() {
return this.managedOwnerName;
}
/**
*
* The owner of the list, used only for lists that are not managed by you. For example, the managed domain list
* AWSManagedDomainsMalwareDomainList
has the managed owner name
* Route 53 Resolver DNS Firewall
.
*
*
* @param managedOwnerName
* The owner of the list, used only for lists that are not managed by you. For example, the managed domain
* list AWSManagedDomainsMalwareDomainList
has the managed owner name
* Route 53 Resolver DNS Firewall
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public FirewallDomainList withManagedOwnerName(String managedOwnerName) {
setManagedOwnerName(managedOwnerName);
return this;
}
/**
*
* A unique string defined by you to identify the request. This allows you to retry failed requests without the risk
* of running the operation twice. This can be any unique string, for example, a timestamp.
*
*
* @param creatorRequestId
* A unique string defined by you to identify the request. This allows you to retry failed requests without
* the risk of running the operation twice. This can be any unique string, for example, a timestamp.
*/
public void setCreatorRequestId(String creatorRequestId) {
this.creatorRequestId = creatorRequestId;
}
/**
*
* A unique string defined by you to identify the request. This allows you to retry failed requests without the risk
* of running the operation twice. This can be any unique string, for example, a timestamp.
*
*
* @return A unique string defined by you to identify the request. This allows you to retry failed requests without
* the risk of running the operation twice. This can be any unique string, for example, a timestamp.
*/
public String getCreatorRequestId() {
return this.creatorRequestId;
}
/**
*
* A unique string defined by you to identify the request. This allows you to retry failed requests without the risk
* of running the operation twice. This can be any unique string, for example, a timestamp.
*
*
* @param creatorRequestId
* A unique string defined by you to identify the request. This allows you to retry failed requests without
* the risk of running the operation twice. This can be any unique string, for example, a timestamp.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public FirewallDomainList withCreatorRequestId(String creatorRequestId) {
setCreatorRequestId(creatorRequestId);
return this;
}
/**
*
* The date and time that the domain list was created, in Unix time format and Coordinated Universal Time (UTC).
*
*
* @param creationTime
* The date and time that the domain list was created, in Unix time format and Coordinated Universal Time
* (UTC).
*/
public void setCreationTime(String creationTime) {
this.creationTime = creationTime;
}
/**
*
* The date and time that the domain list was created, in Unix time format and Coordinated Universal Time (UTC).
*
*
* @return The date and time that the domain list was created, in Unix time format and Coordinated Universal Time
* (UTC).
*/
public String getCreationTime() {
return this.creationTime;
}
/**
*
* The date and time that the domain list was created, in Unix time format and Coordinated Universal Time (UTC).
*
*
* @param creationTime
* The date and time that the domain list was created, in Unix time format and Coordinated Universal Time
* (UTC).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public FirewallDomainList withCreationTime(String creationTime) {
setCreationTime(creationTime);
return this;
}
/**
*
* The date and time that the domain list was last modified, in Unix time format and Coordinated Universal Time
* (UTC).
*
*
* @param modificationTime
* The date and time that the domain list was last modified, in Unix time format and Coordinated Universal
* Time (UTC).
*/
public void setModificationTime(String modificationTime) {
this.modificationTime = modificationTime;
}
/**
*
* The date and time that the domain list was last modified, in Unix time format and Coordinated Universal Time
* (UTC).
*
*
* @return The date and time that the domain list was last modified, in Unix time format and Coordinated Universal
* Time (UTC).
*/
public String getModificationTime() {
return this.modificationTime;
}
/**
*
* The date and time that the domain list was last modified, in Unix time format and Coordinated Universal Time
* (UTC).
*
*
* @param modificationTime
* The date and time that the domain list was last modified, in Unix time format and Coordinated Universal
* Time (UTC).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public FirewallDomainList withModificationTime(String modificationTime) {
setModificationTime(modificationTime);
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 (getId() != null)
sb.append("Id: ").append(getId()).append(",");
if (getArn() != null)
sb.append("Arn: ").append(getArn()).append(",");
if (getName() != null)
sb.append("Name: ").append(getName()).append(",");
if (getDomainCount() != null)
sb.append("DomainCount: ").append(getDomainCount()).append(",");
if (getStatus() != null)
sb.append("Status: ").append(getStatus()).append(",");
if (getStatusMessage() != null)
sb.append("StatusMessage: ").append(getStatusMessage()).append(",");
if (getManagedOwnerName() != null)
sb.append("ManagedOwnerName: ").append(getManagedOwnerName()).append(",");
if (getCreatorRequestId() != null)
sb.append("CreatorRequestId: ").append(getCreatorRequestId()).append(",");
if (getCreationTime() != null)
sb.append("CreationTime: ").append(getCreationTime()).append(",");
if (getModificationTime() != null)
sb.append("ModificationTime: ").append(getModificationTime());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof FirewallDomainList == false)
return false;
FirewallDomainList other = (FirewallDomainList) obj;
if (other.getId() == null ^ this.getId() == null)
return false;
if (other.getId() != null && other.getId().equals(this.getId()) == false)
return false;
if (other.getArn() == null ^ this.getArn() == null)
return false;
if (other.getArn() != null && other.getArn().equals(this.getArn()) == false)
return false;
if (other.getName() == null ^ this.getName() == null)
return false;
if (other.getName() != null && other.getName().equals(this.getName()) == false)
return false;
if (other.getDomainCount() == null ^ this.getDomainCount() == null)
return false;
if (other.getDomainCount() != null && other.getDomainCount().equals(this.getDomainCount()) == false)
return false;
if (other.getStatus() == null ^ this.getStatus() == null)
return false;
if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false)
return false;
if (other.getStatusMessage() == null ^ this.getStatusMessage() == null)
return false;
if (other.getStatusMessage() != null && other.getStatusMessage().equals(this.getStatusMessage()) == false)
return false;
if (other.getManagedOwnerName() == null ^ this.getManagedOwnerName() == null)
return false;
if (other.getManagedOwnerName() != null && other.getManagedOwnerName().equals(this.getManagedOwnerName()) == false)
return false;
if (other.getCreatorRequestId() == null ^ this.getCreatorRequestId() == null)
return false;
if (other.getCreatorRequestId() != null && other.getCreatorRequestId().equals(this.getCreatorRequestId()) == false)
return false;
if (other.getCreationTime() == null ^ this.getCreationTime() == null)
return false;
if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == false)
return false;
if (other.getModificationTime() == null ^ this.getModificationTime() == null)
return false;
if (other.getModificationTime() != null && other.getModificationTime().equals(this.getModificationTime()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode());
hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode());
hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode());
hashCode = prime * hashCode + ((getDomainCount() == null) ? 0 : getDomainCount().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode + ((getStatusMessage() == null) ? 0 : getStatusMessage().hashCode());
hashCode = prime * hashCode + ((getManagedOwnerName() == null) ? 0 : getManagedOwnerName().hashCode());
hashCode = prime * hashCode + ((getCreatorRequestId() == null) ? 0 : getCreatorRequestId().hashCode());
hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode());
hashCode = prime * hashCode + ((getModificationTime() == null) ? 0 : getModificationTime().hashCode());
return hashCode;
}
@Override
public FirewallDomainList clone() {
try {
return (FirewallDomainList) 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.route53resolver.model.transform.FirewallDomainListMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}