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

com.amazonaws.services.fms.model.GetProtectionStatusRequest 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.AmazonWebServiceRequest;

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

    /**
     * 

* The ID of the policy for which you want to get the attack information. *

*/ private String policyId; /** *

* The Amazon Web Services account that is in scope of the policy that you want to get the details for. *

*/ private String memberAccountId; /** *

* The start of the time period to query for the attacks. This is a timestamp type. The request syntax * listing indicates a number type because the default used by Firewall Manager is Unix time in * seconds. However, any valid timestamp format is allowed. *

*/ private java.util.Date startTime; /** *

* The end of the time period to query for the attacks. This is a timestamp type. The request syntax * listing indicates a number type because the default used by Firewall Manager is Unix time in * seconds. However, any valid timestamp format is allowed. *

*/ private java.util.Date endTime; /** *

* If you specify a value for MaxResults and you have more objects than the number that you specify for * MaxResults, Firewall Manager returns a NextToken value in the response, which you can * use to retrieve another group of objects. For the second and subsequent GetProtectionStatus * requests, specify the value of NextToken from the previous response to get information about another * batch of objects. *

*/ private String nextToken; /** *

* Specifies the number of objects that you want Firewall Manager to return for this request. If you have more * objects than the number that you specify for MaxResults, the response includes a * NextToken value that you can use to get another batch of objects. *

*/ private Integer maxResults; /** *

* The ID of the policy for which you want to get the attack information. *

* * @param policyId * The ID of the policy for which you want to get the attack information. */ public void setPolicyId(String policyId) { this.policyId = policyId; } /** *

* The ID of the policy for which you want to get the attack information. *

* * @return The ID of the policy for which you want to get the attack information. */ public String getPolicyId() { return this.policyId; } /** *

* The ID of the policy for which you want to get the attack information. *

* * @param policyId * The ID of the policy for which you want to get the attack information. * @return Returns a reference to this object so that method calls can be chained together. */ public GetProtectionStatusRequest withPolicyId(String policyId) { setPolicyId(policyId); return this; } /** *

* The Amazon Web Services account that is in scope of the policy that you want to get the details for. *

* * @param memberAccountId * The Amazon Web Services account that is in scope of the policy that you want to get the details for. */ public void setMemberAccountId(String memberAccountId) { this.memberAccountId = memberAccountId; } /** *

* The Amazon Web Services account that is in scope of the policy that you want to get the details for. *

* * @return The Amazon Web Services account that is in scope of the policy that you want to get the details for. */ public String getMemberAccountId() { return this.memberAccountId; } /** *

* The Amazon Web Services account that is in scope of the policy that you want to get the details for. *

* * @param memberAccountId * The Amazon Web Services account that is in scope of the policy that you want to get the details for. * @return Returns a reference to this object so that method calls can be chained together. */ public GetProtectionStatusRequest withMemberAccountId(String memberAccountId) { setMemberAccountId(memberAccountId); return this; } /** *

* The start of the time period to query for the attacks. This is a timestamp type. The request syntax * listing indicates a number type because the default used by Firewall Manager is Unix time in * seconds. However, any valid timestamp format is allowed. *

* * @param startTime * The start of the time period to query for the attacks. This is a timestamp type. The request * syntax listing indicates a number type because the default used by Firewall Manager is Unix * time in seconds. However, any valid timestamp format is allowed. */ public void setStartTime(java.util.Date startTime) { this.startTime = startTime; } /** *

* The start of the time period to query for the attacks. This is a timestamp type. The request syntax * listing indicates a number type because the default used by Firewall Manager is Unix time in * seconds. However, any valid timestamp format is allowed. *

* * @return The start of the time period to query for the attacks. This is a timestamp type. The request * syntax listing indicates a number type because the default used by Firewall Manager is Unix * time in seconds. However, any valid timestamp format is allowed. */ public java.util.Date getStartTime() { return this.startTime; } /** *

* The start of the time period to query for the attacks. This is a timestamp type. The request syntax * listing indicates a number type because the default used by Firewall Manager is Unix time in * seconds. However, any valid timestamp format is allowed. *

* * @param startTime * The start of the time period to query for the attacks. This is a timestamp type. The request * syntax listing indicates a number type because the default used by Firewall Manager is Unix * time in seconds. However, any valid timestamp format is allowed. * @return Returns a reference to this object so that method calls can be chained together. */ public GetProtectionStatusRequest withStartTime(java.util.Date startTime) { setStartTime(startTime); return this; } /** *

* The end of the time period to query for the attacks. This is a timestamp type. The request syntax * listing indicates a number type because the default used by Firewall Manager is Unix time in * seconds. However, any valid timestamp format is allowed. *

* * @param endTime * The end of the time period to query for the attacks. This is a timestamp type. The request * syntax listing indicates a number type because the default used by Firewall Manager is Unix * time in seconds. However, any valid timestamp format is allowed. */ public void setEndTime(java.util.Date endTime) { this.endTime = endTime; } /** *

* The end of the time period to query for the attacks. This is a timestamp type. The request syntax * listing indicates a number type because the default used by Firewall Manager is Unix time in * seconds. However, any valid timestamp format is allowed. *

* * @return The end of the time period to query for the attacks. This is a timestamp type. The request * syntax listing indicates a number type because the default used by Firewall Manager is Unix * time in seconds. However, any valid timestamp format is allowed. */ public java.util.Date getEndTime() { return this.endTime; } /** *

* The end of the time period to query for the attacks. This is a timestamp type. The request syntax * listing indicates a number type because the default used by Firewall Manager is Unix time in * seconds. However, any valid timestamp format is allowed. *

* * @param endTime * The end of the time period to query for the attacks. This is a timestamp type. The request * syntax listing indicates a number type because the default used by Firewall Manager is Unix * time in seconds. However, any valid timestamp format is allowed. * @return Returns a reference to this object so that method calls can be chained together. */ public GetProtectionStatusRequest withEndTime(java.util.Date endTime) { setEndTime(endTime); return this; } /** *

* If you specify a value for MaxResults and you have more objects than the number that you specify for * MaxResults, Firewall Manager returns a NextToken value in the response, which you can * use to retrieve another group of objects. For the second and subsequent GetProtectionStatus * requests, specify the value of NextToken from the previous response to get information about another * batch of objects. *

* * @param nextToken * If you specify a value for MaxResults and you have more objects than the number that you * specify for MaxResults, Firewall Manager returns a NextToken value in the * response, which you can use to retrieve another group of objects. For the second and subsequent * GetProtectionStatus requests, specify the value of NextToken from the previous * response to get information about another batch of objects. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** *

* If you specify a value for MaxResults and you have more objects than the number that you specify for * MaxResults, Firewall Manager returns a NextToken value in the response, which you can * use to retrieve another group of objects. For the second and subsequent GetProtectionStatus * requests, specify the value of NextToken from the previous response to get information about another * batch of objects. *

* * @return If you specify a value for MaxResults and you have more objects than the number that you * specify for MaxResults, Firewall Manager returns a NextToken value in the * response, which you can use to retrieve another group of objects. For the second and subsequent * GetProtectionStatus requests, specify the value of NextToken from the previous * response to get information about another batch of objects. */ public String getNextToken() { return this.nextToken; } /** *

* If you specify a value for MaxResults and you have more objects than the number that you specify for * MaxResults, Firewall Manager returns a NextToken value in the response, which you can * use to retrieve another group of objects. For the second and subsequent GetProtectionStatus * requests, specify the value of NextToken from the previous response to get information about another * batch of objects. *

* * @param nextToken * If you specify a value for MaxResults and you have more objects than the number that you * specify for MaxResults, Firewall Manager returns a NextToken value in the * response, which you can use to retrieve another group of objects. For the second and subsequent * GetProtectionStatus requests, specify the value of NextToken from the previous * response to get information about another batch of objects. * @return Returns a reference to this object so that method calls can be chained together. */ public GetProtectionStatusRequest withNextToken(String nextToken) { setNextToken(nextToken); return this; } /** *

* Specifies the number of objects that you want Firewall Manager to return for this request. If you have more * objects than the number that you specify for MaxResults, the response includes a * NextToken value that you can use to get another batch of objects. *

* * @param maxResults * Specifies the number of objects that you want Firewall Manager to return for this request. If you have * more objects than the number that you specify for MaxResults, the response includes a * NextToken value that you can use to get another batch of objects. */ public void setMaxResults(Integer maxResults) { this.maxResults = maxResults; } /** *

* Specifies the number of objects that you want Firewall Manager to return for this request. If you have more * objects than the number that you specify for MaxResults, the response includes a * NextToken value that you can use to get another batch of objects. *

* * @return Specifies the number of objects that you want Firewall Manager to return for this request. If you have * more objects than the number that you specify for MaxResults, the response includes a * NextToken value that you can use to get another batch of objects. */ public Integer getMaxResults() { return this.maxResults; } /** *

* Specifies the number of objects that you want Firewall Manager to return for this request. If you have more * objects than the number that you specify for MaxResults, the response includes a * NextToken value that you can use to get another batch of objects. *

* * @param maxResults * Specifies the number of objects that you want Firewall Manager to return for this request. If you have * more objects than the number that you specify for MaxResults, the response includes a * NextToken value that you can use to get another batch of objects. * @return Returns a reference to this object so that method calls can be chained together. */ public GetProtectionStatusRequest withMaxResults(Integer maxResults) { setMaxResults(maxResults); 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 (getPolicyId() != null) sb.append("PolicyId: ").append(getPolicyId()).append(","); if (getMemberAccountId() != null) sb.append("MemberAccountId: ").append(getMemberAccountId()).append(","); if (getStartTime() != null) sb.append("StartTime: ").append(getStartTime()).append(","); if (getEndTime() != null) sb.append("EndTime: ").append(getEndTime()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()).append(","); if (getMaxResults() != null) sb.append("MaxResults: ").append(getMaxResults()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetProtectionStatusRequest == false) return false; GetProtectionStatusRequest other = (GetProtectionStatusRequest) obj; if (other.getPolicyId() == null ^ this.getPolicyId() == null) return false; if (other.getPolicyId() != null && other.getPolicyId().equals(this.getPolicyId()) == false) return false; if (other.getMemberAccountId() == null ^ this.getMemberAccountId() == null) return false; if (other.getMemberAccountId() != null && other.getMemberAccountId().equals(this.getMemberAccountId()) == false) return false; if (other.getStartTime() == null ^ this.getStartTime() == null) return false; if (other.getStartTime() != null && other.getStartTime().equals(this.getStartTime()) == false) return false; if (other.getEndTime() == null ^ this.getEndTime() == null) return false; if (other.getEndTime() != null && other.getEndTime().equals(this.getEndTime()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; if (other.getMaxResults() == null ^ this.getMaxResults() == null) return false; if (other.getMaxResults() != null && other.getMaxResults().equals(this.getMaxResults()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getPolicyId() == null) ? 0 : getPolicyId().hashCode()); hashCode = prime * hashCode + ((getMemberAccountId() == null) ? 0 : getMemberAccountId().hashCode()); hashCode = prime * hashCode + ((getStartTime() == null) ? 0 : getStartTime().hashCode()); hashCode = prime * hashCode + ((getEndTime() == null) ? 0 : getEndTime().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); return hashCode; } @Override public GetProtectionStatusRequest clone() { return (GetProtectionStatusRequest) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy