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

com.amazonaws.services.securityhub.model.IpOrganizationDetails Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS SecurityHub module holds the client classes that are used for communicating with AWS SecurityHub Service

There is a newer version: 1.12.772
Show newest version
/*
 * 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.securityhub.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Provides information about an internet provider. *

* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class IpOrganizationDetails implements Serializable, Cloneable, StructuredPojo { /** *

* The Autonomous System Number (ASN) of the internet provider *

*/ private Integer asn; /** *

* The name of the organization that registered the ASN. *

*/ private String asnOrg; /** *

* The ISP information for the internet provider. *

*/ private String isp; /** *

* The name of the internet provider. *

*/ private String org; /** *

* The Autonomous System Number (ASN) of the internet provider *

* * @param asn * The Autonomous System Number (ASN) of the internet provider */ public void setAsn(Integer asn) { this.asn = asn; } /** *

* The Autonomous System Number (ASN) of the internet provider *

* * @return The Autonomous System Number (ASN) of the internet provider */ public Integer getAsn() { return this.asn; } /** *

* The Autonomous System Number (ASN) of the internet provider *

* * @param asn * The Autonomous System Number (ASN) of the internet provider * @return Returns a reference to this object so that method calls can be chained together. */ public IpOrganizationDetails withAsn(Integer asn) { setAsn(asn); return this; } /** *

* The name of the organization that registered the ASN. *

* * @param asnOrg * The name of the organization that registered the ASN. */ public void setAsnOrg(String asnOrg) { this.asnOrg = asnOrg; } /** *

* The name of the organization that registered the ASN. *

* * @return The name of the organization that registered the ASN. */ public String getAsnOrg() { return this.asnOrg; } /** *

* The name of the organization that registered the ASN. *

* * @param asnOrg * The name of the organization that registered the ASN. * @return Returns a reference to this object so that method calls can be chained together. */ public IpOrganizationDetails withAsnOrg(String asnOrg) { setAsnOrg(asnOrg); return this; } /** *

* The ISP information for the internet provider. *

* * @param isp * The ISP information for the internet provider. */ public void setIsp(String isp) { this.isp = isp; } /** *

* The ISP information for the internet provider. *

* * @return The ISP information for the internet provider. */ public String getIsp() { return this.isp; } /** *

* The ISP information for the internet provider. *

* * @param isp * The ISP information for the internet provider. * @return Returns a reference to this object so that method calls can be chained together. */ public IpOrganizationDetails withIsp(String isp) { setIsp(isp); return this; } /** *

* The name of the internet provider. *

* * @param org * The name of the internet provider. */ public void setOrg(String org) { this.org = org; } /** *

* The name of the internet provider. *

* * @return The name of the internet provider. */ public String getOrg() { return this.org; } /** *

* The name of the internet provider. *

* * @param org * The name of the internet provider. * @return Returns a reference to this object so that method calls can be chained together. */ public IpOrganizationDetails withOrg(String org) { setOrg(org); 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 (getAsn() != null) sb.append("Asn: ").append(getAsn()).append(","); if (getAsnOrg() != null) sb.append("AsnOrg: ").append(getAsnOrg()).append(","); if (getIsp() != null) sb.append("Isp: ").append(getIsp()).append(","); if (getOrg() != null) sb.append("Org: ").append(getOrg()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof IpOrganizationDetails == false) return false; IpOrganizationDetails other = (IpOrganizationDetails) obj; if (other.getAsn() == null ^ this.getAsn() == null) return false; if (other.getAsn() != null && other.getAsn().equals(this.getAsn()) == false) return false; if (other.getAsnOrg() == null ^ this.getAsnOrg() == null) return false; if (other.getAsnOrg() != null && other.getAsnOrg().equals(this.getAsnOrg()) == false) return false; if (other.getIsp() == null ^ this.getIsp() == null) return false; if (other.getIsp() != null && other.getIsp().equals(this.getIsp()) == false) return false; if (other.getOrg() == null ^ this.getOrg() == null) return false; if (other.getOrg() != null && other.getOrg().equals(this.getOrg()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAsn() == null) ? 0 : getAsn().hashCode()); hashCode = prime * hashCode + ((getAsnOrg() == null) ? 0 : getAsnOrg().hashCode()); hashCode = prime * hashCode + ((getIsp() == null) ? 0 : getIsp().hashCode()); hashCode = prime * hashCode + ((getOrg() == null) ? 0 : getOrg().hashCode()); return hashCode; } @Override public IpOrganizationDetails clone() { try { return (IpOrganizationDetails) 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.securityhub.model.transform.IpOrganizationDetailsMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy