/* * 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.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateIPSetRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The unique ID of the detector of the GuardDuty account that you want to create an IPSet for. *
*/ private String detectorId; /** ** The user-friendly name to identify the IPSet. *
** Allowed characters are alphanumeric, whitespace, dash (-), and underscores (_). *
*/ private String name; /** ** The format of the file that contains the IPSet. *
*/ private String format; /** ** The URI of the file that contains the IPSet. *
*/ private String location; /** ** A Boolean value that indicates whether GuardDuty is to start using the uploaded IPSet. *
*/ private Boolean activate; /** ** The idempotency token for the create request. *
*/ private String clientToken; /** ** The tags to be added to a new IP set resource. *
*/ private java.util.Map* The unique ID of the detector of the GuardDuty account that you want to create an IPSet for. *
* * @param detectorId * The unique ID of the detector of the GuardDuty account that you want to create an IPSet for. */ public void setDetectorId(String detectorId) { this.detectorId = detectorId; } /** ** The unique ID of the detector of the GuardDuty account that you want to create an IPSet for. *
* * @return The unique ID of the detector of the GuardDuty account that you want to create an IPSet for. */ public String getDetectorId() { return this.detectorId; } /** ** The unique ID of the detector of the GuardDuty account that you want to create an IPSet for. *
* * @param detectorId * The unique ID of the detector of the GuardDuty account that you want to create an IPSet for. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateIPSetRequest withDetectorId(String detectorId) { setDetectorId(detectorId); return this; } /** ** The user-friendly name to identify the IPSet. *
** Allowed characters are alphanumeric, whitespace, dash (-), and underscores (_). *
* * @param name * The user-friendly name to identify the IPSet. ** Allowed characters are alphanumeric, whitespace, dash (-), and underscores (_). */ public void setName(String name) { this.name = name; } /** *
* The user-friendly name to identify the IPSet. *
** Allowed characters are alphanumeric, whitespace, dash (-), and underscores (_). *
* * @return The user-friendly name to identify the IPSet. ** Allowed characters are alphanumeric, whitespace, dash (-), and underscores (_). */ public String getName() { return this.name; } /** *
* The user-friendly name to identify the IPSet. *
** Allowed characters are alphanumeric, whitespace, dash (-), and underscores (_). *
* * @param name * The user-friendly name to identify the IPSet. ** Allowed characters are alphanumeric, whitespace, dash (-), and underscores (_). * @return Returns a reference to this object so that method calls can be chained together. */ public CreateIPSetRequest withName(String name) { setName(name); return this; } /** *
* The format of the file that contains the IPSet. *
* * @param format * The format of the file that contains the IPSet. * @see IpSetFormat */ public void setFormat(String format) { this.format = format; } /** ** The format of the file that contains the IPSet. *
* * @return The format of the file that contains the IPSet. * @see IpSetFormat */ public String getFormat() { return this.format; } /** ** The format of the file that contains the IPSet. *
* * @param format * The format of the file that contains the IPSet. * @return Returns a reference to this object so that method calls can be chained together. * @see IpSetFormat */ public CreateIPSetRequest withFormat(String format) { setFormat(format); return this; } /** ** The format of the file that contains the IPSet. *
* * @param format * The format of the file that contains the IPSet. * @return Returns a reference to this object so that method calls can be chained together. * @see IpSetFormat */ public CreateIPSetRequest withFormat(IpSetFormat format) { this.format = format.toString(); return this; } /** ** The URI of the file that contains the IPSet. *
* * @param location * The URI of the file that contains the IPSet. */ public void setLocation(String location) { this.location = location; } /** ** The URI of the file that contains the IPSet. *
* * @return The URI of the file that contains the IPSet. */ public String getLocation() { return this.location; } /** ** The URI of the file that contains the IPSet. *
* * @param location * The URI of the file that contains the IPSet. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateIPSetRequest withLocation(String location) { setLocation(location); return this; } /** ** A Boolean value that indicates whether GuardDuty is to start using the uploaded IPSet. *
* * @param activate * A Boolean value that indicates whether GuardDuty is to start using the uploaded IPSet. */ public void setActivate(Boolean activate) { this.activate = activate; } /** ** A Boolean value that indicates whether GuardDuty is to start using the uploaded IPSet. *
* * @return A Boolean value that indicates whether GuardDuty is to start using the uploaded IPSet. */ public Boolean getActivate() { return this.activate; } /** ** A Boolean value that indicates whether GuardDuty is to start using the uploaded IPSet. *
* * @param activate * A Boolean value that indicates whether GuardDuty is to start using the uploaded IPSet. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateIPSetRequest withActivate(Boolean activate) { setActivate(activate); return this; } /** ** A Boolean value that indicates whether GuardDuty is to start using the uploaded IPSet. *
* * @return A Boolean value that indicates whether GuardDuty is to start using the uploaded IPSet. */ public Boolean isActivate() { return this.activate; } /** ** The idempotency token for the create request. *
* * @param clientToken * The idempotency token for the create request. */ public void setClientToken(String clientToken) { this.clientToken = clientToken; } /** ** The idempotency token for the create request. *
* * @return The idempotency token for the create request. */ public String getClientToken() { return this.clientToken; } /** ** The idempotency token for the create request. *
* * @param clientToken * The idempotency token for the create request. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateIPSetRequest withClientToken(String clientToken) { setClientToken(clientToken); return this; } /** ** The tags to be added to a new IP set resource. *
* * @return The tags to be added to a new IP set resource. */ public java.util.Map* The tags to be added to a new IP set resource. *
* * @param tags * The tags to be added to a new IP set resource. */ public void setTags(java.util.Map* The tags to be added to a new IP set resource. *
* * @param tags * The tags to be added to a new IP set resource. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateIPSetRequest withTags(java.util.Map