/* * 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 CreateThreatIntelSetRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The unique ID of the detector of the GuardDuty account that you want to create a threatIntelSet for. *
*/ private String detectorId; /** ** A user-friendly ThreatIntelSet name displayed in all findings that are generated by activity that involves IP * addresses included in this ThreatIntelSet. *
*/ private String name; /** ** The format of the file that contains the ThreatIntelSet. *
*/ private String format; /** ** The URI of the file that contains the ThreatIntelSet. *
*/ private String location; /** ** A Boolean value that indicates whether GuardDuty is to start using the uploaded ThreatIntelSet. *
*/ private Boolean activate; /** ** The idempotency token for the create request. *
*/ private String clientToken; /** ** The tags to be added to a new threat list resource. *
*/ private java.util.Map* The unique ID of the detector of the GuardDuty account that you want to create a threatIntelSet for. *
* * @param detectorId * The unique ID of the detector of the GuardDuty account that you want to create a threatIntelSet for. */ public void setDetectorId(String detectorId) { this.detectorId = detectorId; } /** ** The unique ID of the detector of the GuardDuty account that you want to create a threatIntelSet for. *
* * @return The unique ID of the detector of the GuardDuty account that you want to create a threatIntelSet for. */ public String getDetectorId() { return this.detectorId; } /** ** The unique ID of the detector of the GuardDuty account that you want to create a threatIntelSet for. *
* * @param detectorId * The unique ID of the detector of the GuardDuty account that you want to create a threatIntelSet for. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateThreatIntelSetRequest withDetectorId(String detectorId) { setDetectorId(detectorId); return this; } /** ** A user-friendly ThreatIntelSet name displayed in all findings that are generated by activity that involves IP * addresses included in this ThreatIntelSet. *
* * @param name * A user-friendly ThreatIntelSet name displayed in all findings that are generated by activity that involves * IP addresses included in this ThreatIntelSet. */ public void setName(String name) { this.name = name; } /** ** A user-friendly ThreatIntelSet name displayed in all findings that are generated by activity that involves IP * addresses included in this ThreatIntelSet. *
* * @return A user-friendly ThreatIntelSet name displayed in all findings that are generated by activity that * involves IP addresses included in this ThreatIntelSet. */ public String getName() { return this.name; } /** ** A user-friendly ThreatIntelSet name displayed in all findings that are generated by activity that involves IP * addresses included in this ThreatIntelSet. *
* * @param name * A user-friendly ThreatIntelSet name displayed in all findings that are generated by activity that involves * IP addresses included in this ThreatIntelSet. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateThreatIntelSetRequest withName(String name) { setName(name); return this; } /** ** The format of the file that contains the ThreatIntelSet. *
* * @param format * The format of the file that contains the ThreatIntelSet. * @see ThreatIntelSetFormat */ public void setFormat(String format) { this.format = format; } /** ** The format of the file that contains the ThreatIntelSet. *
* * @return The format of the file that contains the ThreatIntelSet. * @see ThreatIntelSetFormat */ public String getFormat() { return this.format; } /** ** The format of the file that contains the ThreatIntelSet. *
* * @param format * The format of the file that contains the ThreatIntelSet. * @return Returns a reference to this object so that method calls can be chained together. * @see ThreatIntelSetFormat */ public CreateThreatIntelSetRequest withFormat(String format) { setFormat(format); return this; } /** ** The format of the file that contains the ThreatIntelSet. *
* * @param format * The format of the file that contains the ThreatIntelSet. * @return Returns a reference to this object so that method calls can be chained together. * @see ThreatIntelSetFormat */ public CreateThreatIntelSetRequest withFormat(ThreatIntelSetFormat format) { this.format = format.toString(); return this; } /** ** The URI of the file that contains the ThreatIntelSet. *
* * @param location * The URI of the file that contains the ThreatIntelSet. */ public void setLocation(String location) { this.location = location; } /** ** The URI of the file that contains the ThreatIntelSet. *
* * @return The URI of the file that contains the ThreatIntelSet. */ public String getLocation() { return this.location; } /** ** The URI of the file that contains the ThreatIntelSet. *
* * @param location * The URI of the file that contains the ThreatIntelSet. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateThreatIntelSetRequest withLocation(String location) { setLocation(location); return this; } /** ** A Boolean value that indicates whether GuardDuty is to start using the uploaded ThreatIntelSet. *
* * @param activate * A Boolean value that indicates whether GuardDuty is to start using the uploaded ThreatIntelSet. */ public void setActivate(Boolean activate) { this.activate = activate; } /** ** A Boolean value that indicates whether GuardDuty is to start using the uploaded ThreatIntelSet. *
* * @return A Boolean value that indicates whether GuardDuty is to start using the uploaded ThreatIntelSet. */ public Boolean getActivate() { return this.activate; } /** ** A Boolean value that indicates whether GuardDuty is to start using the uploaded ThreatIntelSet. *
* * @param activate * A Boolean value that indicates whether GuardDuty is to start using the uploaded ThreatIntelSet. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateThreatIntelSetRequest withActivate(Boolean activate) { setActivate(activate); return this; } /** ** A Boolean value that indicates whether GuardDuty is to start using the uploaded ThreatIntelSet. *
* * @return A Boolean value that indicates whether GuardDuty is to start using the uploaded ThreatIntelSet. */ 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 CreateThreatIntelSetRequest withClientToken(String clientToken) { setClientToken(clientToken); return this; } /** ** The tags to be added to a new threat list resource. *
* * @return The tags to be added to a new threat list resource. */ public java.util.Map* The tags to be added to a new threat list resource. *
* * @param tags * The tags to be added to a new threat list resource. */ public void setTags(java.util.Map* The tags to be added to a new threat list resource. *
* * @param tags * The tags to be added to a new threat list resource. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateThreatIntelSetRequest withTags(java.util.Map