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

com.amazonaws.services.fms.model.NetworkFirewallMissingFirewallViolation Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.780
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.fms.model;

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

/**
 * 

* Violation detail for Network Firewall for a subnet that doesn't have a Firewall Manager managed firewall in its VPC. *

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

* The ID of the Network Firewall or VPC resource that's in violation. *

*/ private String violationTarget; /** *

* The resource ID of the VPC associated with a violating subnet. *

*/ private String vPC; /** *

* The Availability Zone of a violating subnet. *

*/ private String availabilityZone; /** *

* The reason the resource has this violation, if one is available. *

*/ private String targetViolationReason; /** *

* The ID of the Network Firewall or VPC resource that's in violation. *

* * @param violationTarget * The ID of the Network Firewall or VPC resource that's in violation. */ public void setViolationTarget(String violationTarget) { this.violationTarget = violationTarget; } /** *

* The ID of the Network Firewall or VPC resource that's in violation. *

* * @return The ID of the Network Firewall or VPC resource that's in violation. */ public String getViolationTarget() { return this.violationTarget; } /** *

* The ID of the Network Firewall or VPC resource that's in violation. *

* * @param violationTarget * The ID of the Network Firewall or VPC resource that's in violation. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkFirewallMissingFirewallViolation withViolationTarget(String violationTarget) { setViolationTarget(violationTarget); return this; } /** *

* The resource ID of the VPC associated with a violating subnet. *

* * @param vPC * The resource ID of the VPC associated with a violating subnet. */ public void setVPC(String vPC) { this.vPC = vPC; } /** *

* The resource ID of the VPC associated with a violating subnet. *

* * @return The resource ID of the VPC associated with a violating subnet. */ public String getVPC() { return this.vPC; } /** *

* The resource ID of the VPC associated with a violating subnet. *

* * @param vPC * The resource ID of the VPC associated with a violating subnet. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkFirewallMissingFirewallViolation withVPC(String vPC) { setVPC(vPC); return this; } /** *

* The Availability Zone of a violating subnet. *

* * @param availabilityZone * The Availability Zone of a violating subnet. */ public void setAvailabilityZone(String availabilityZone) { this.availabilityZone = availabilityZone; } /** *

* The Availability Zone of a violating subnet. *

* * @return The Availability Zone of a violating subnet. */ public String getAvailabilityZone() { return this.availabilityZone; } /** *

* The Availability Zone of a violating subnet. *

* * @param availabilityZone * The Availability Zone of a violating subnet. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkFirewallMissingFirewallViolation withAvailabilityZone(String availabilityZone) { setAvailabilityZone(availabilityZone); return this; } /** *

* The reason the resource has this violation, if one is available. *

* * @param targetViolationReason * The reason the resource has this violation, if one is available. */ public void setTargetViolationReason(String targetViolationReason) { this.targetViolationReason = targetViolationReason; } /** *

* The reason the resource has this violation, if one is available. *

* * @return The reason the resource has this violation, if one is available. */ public String getTargetViolationReason() { return this.targetViolationReason; } /** *

* The reason the resource has this violation, if one is available. *

* * @param targetViolationReason * The reason the resource has this violation, if one is available. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkFirewallMissingFirewallViolation withTargetViolationReason(String targetViolationReason) { setTargetViolationReason(targetViolationReason); 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 (getViolationTarget() != null) sb.append("ViolationTarget: ").append(getViolationTarget()).append(","); if (getVPC() != null) sb.append("VPC: ").append(getVPC()).append(","); if (getAvailabilityZone() != null) sb.append("AvailabilityZone: ").append(getAvailabilityZone()).append(","); if (getTargetViolationReason() != null) sb.append("TargetViolationReason: ").append(getTargetViolationReason()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof NetworkFirewallMissingFirewallViolation == false) return false; NetworkFirewallMissingFirewallViolation other = (NetworkFirewallMissingFirewallViolation) obj; if (other.getViolationTarget() == null ^ this.getViolationTarget() == null) return false; if (other.getViolationTarget() != null && other.getViolationTarget().equals(this.getViolationTarget()) == false) return false; if (other.getVPC() == null ^ this.getVPC() == null) return false; if (other.getVPC() != null && other.getVPC().equals(this.getVPC()) == false) return false; if (other.getAvailabilityZone() == null ^ this.getAvailabilityZone() == null) return false; if (other.getAvailabilityZone() != null && other.getAvailabilityZone().equals(this.getAvailabilityZone()) == false) return false; if (other.getTargetViolationReason() == null ^ this.getTargetViolationReason() == null) return false; if (other.getTargetViolationReason() != null && other.getTargetViolationReason().equals(this.getTargetViolationReason()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getViolationTarget() == null) ? 0 : getViolationTarget().hashCode()); hashCode = prime * hashCode + ((getVPC() == null) ? 0 : getVPC().hashCode()); hashCode = prime * hashCode + ((getAvailabilityZone() == null) ? 0 : getAvailabilityZone().hashCode()); hashCode = prime * hashCode + ((getTargetViolationReason() == null) ? 0 : getTargetViolationReason().hashCode()); return hashCode; } @Override public NetworkFirewallMissingFirewallViolation clone() { try { return (NetworkFirewallMissingFirewallViolation) 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.fms.model.transform.NetworkFirewallMissingFirewallViolationMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy