/* * Copyright 2018-2023 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.guardduty.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Contains information about the PORT_PROBE action described in the finding. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class PortProbeAction implements Serializable, Cloneable, StructuredPojo { /** ** Indicates whether EC2 blocked the port probe to the instance, such as with an ACL. *
*/ private Boolean blocked; /** ** A list of objects related to port probe details. *
*/ private java.util.List* Indicates whether EC2 blocked the port probe to the instance, such as with an ACL. *
* * @param blocked * Indicates whether EC2 blocked the port probe to the instance, such as with an ACL. */ public void setBlocked(Boolean blocked) { this.blocked = blocked; } /** ** Indicates whether EC2 blocked the port probe to the instance, such as with an ACL. *
* * @return Indicates whether EC2 blocked the port probe to the instance, such as with an ACL. */ public Boolean getBlocked() { return this.blocked; } /** ** Indicates whether EC2 blocked the port probe to the instance, such as with an ACL. *
* * @param blocked * Indicates whether EC2 blocked the port probe to the instance, such as with an ACL. * @return Returns a reference to this object so that method calls can be chained together. */ public PortProbeAction withBlocked(Boolean blocked) { setBlocked(blocked); return this; } /** ** Indicates whether EC2 blocked the port probe to the instance, such as with an ACL. *
* * @return Indicates whether EC2 blocked the port probe to the instance, such as with an ACL. */ public Boolean isBlocked() { return this.blocked; } /** ** A list of objects related to port probe details. *
* * @return A list of objects related to port probe details. */ public java.util.List* A list of objects related to port probe details. *
* * @param portProbeDetails * A list of objects related to port probe details. */ public void setPortProbeDetails(java.util.Collection* A list of objects related to port probe details. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setPortProbeDetails(java.util.Collection)} or {@link #withPortProbeDetails(java.util.Collection)} if you * want to override the existing values. *
* * @param portProbeDetails * A list of objects related to port probe details. * @return Returns a reference to this object so that method calls can be chained together. */ public PortProbeAction withPortProbeDetails(PortProbeDetail... portProbeDetails) { if (this.portProbeDetails == null) { setPortProbeDetails(new java.util.ArrayList* A list of objects related to port probe details. *
* * @param portProbeDetails * A list of objects related to port probe details. * @return Returns a reference to this object so that method calls can be chained together. */ public PortProbeAction withPortProbeDetails(java.util.Collection