/* * 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 UpdateThreatIntelSetRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The detectorID that specifies the GuardDuty service whose ThreatIntelSet you want to update. *
*/ private String detectorId; /** ** The unique ID that specifies the ThreatIntelSet that you want to update. *
*/ private String threatIntelSetId; /** ** The unique ID that specifies the ThreatIntelSet that you want to update. *
*/ private String name; /** ** The updated URI of the file that contains the ThreateIntelSet. *
*/ private String location; /** ** The updated Boolean value that specifies whether the ThreateIntelSet is active or not. *
*/ private Boolean activate; /** ** The detectorID that specifies the GuardDuty service whose ThreatIntelSet you want to update. *
* * @param detectorId * The detectorID that specifies the GuardDuty service whose ThreatIntelSet you want to update. */ public void setDetectorId(String detectorId) { this.detectorId = detectorId; } /** ** The detectorID that specifies the GuardDuty service whose ThreatIntelSet you want to update. *
* * @return The detectorID that specifies the GuardDuty service whose ThreatIntelSet you want to update. */ public String getDetectorId() { return this.detectorId; } /** ** The detectorID that specifies the GuardDuty service whose ThreatIntelSet you want to update. *
* * @param detectorId * The detectorID that specifies the GuardDuty service whose ThreatIntelSet you want to update. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateThreatIntelSetRequest withDetectorId(String detectorId) { setDetectorId(detectorId); return this; } /** ** The unique ID that specifies the ThreatIntelSet that you want to update. *
* * @param threatIntelSetId * The unique ID that specifies the ThreatIntelSet that you want to update. */ public void setThreatIntelSetId(String threatIntelSetId) { this.threatIntelSetId = threatIntelSetId; } /** ** The unique ID that specifies the ThreatIntelSet that you want to update. *
* * @return The unique ID that specifies the ThreatIntelSet that you want to update. */ public String getThreatIntelSetId() { return this.threatIntelSetId; } /** ** The unique ID that specifies the ThreatIntelSet that you want to update. *
* * @param threatIntelSetId * The unique ID that specifies the ThreatIntelSet that you want to update. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateThreatIntelSetRequest withThreatIntelSetId(String threatIntelSetId) { setThreatIntelSetId(threatIntelSetId); return this; } /** ** The unique ID that specifies the ThreatIntelSet that you want to update. *
* * @param name * The unique ID that specifies the ThreatIntelSet that you want to update. */ public void setName(String name) { this.name = name; } /** ** The unique ID that specifies the ThreatIntelSet that you want to update. *
* * @return The unique ID that specifies the ThreatIntelSet that you want to update. */ public String getName() { return this.name; } /** ** The unique ID that specifies the ThreatIntelSet that you want to update. *
* * @param name * The unique ID that specifies the ThreatIntelSet that you want to update. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateThreatIntelSetRequest withName(String name) { setName(name); return this; } /** ** The updated URI of the file that contains the ThreateIntelSet. *
* * @param location * The updated URI of the file that contains the ThreateIntelSet. */ public void setLocation(String location) { this.location = location; } /** ** The updated URI of the file that contains the ThreateIntelSet. *
* * @return The updated URI of the file that contains the ThreateIntelSet. */ public String getLocation() { return this.location; } /** ** The updated URI of the file that contains the ThreateIntelSet. *
* * @param location * The updated URI of the file that contains the ThreateIntelSet. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateThreatIntelSetRequest withLocation(String location) { setLocation(location); return this; } /** ** The updated Boolean value that specifies whether the ThreateIntelSet is active or not. *
* * @param activate * The updated Boolean value that specifies whether the ThreateIntelSet is active or not. */ public void setActivate(Boolean activate) { this.activate = activate; } /** ** The updated Boolean value that specifies whether the ThreateIntelSet is active or not. *
* * @return The updated Boolean value that specifies whether the ThreateIntelSet is active or not. */ public Boolean getActivate() { return this.activate; } /** ** The updated Boolean value that specifies whether the ThreateIntelSet is active or not. *
* * @param activate * The updated Boolean value that specifies whether the ThreateIntelSet is active or not. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateThreatIntelSetRequest withActivate(Boolean activate) { setActivate(activate); return this; } /** ** The updated Boolean value that specifies whether the ThreateIntelSet is active or not. *
* * @return The updated Boolean value that specifies whether the ThreateIntelSet is active or not. */ public Boolean isActivate() { return this.activate; } /** * 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 (getDetectorId() != null) sb.append("DetectorId: ").append(getDetectorId()).append(","); if (getThreatIntelSetId() != null) sb.append("ThreatIntelSetId: ").append(getThreatIntelSetId()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getLocation() != null) sb.append("Location: ").append(getLocation()).append(","); if (getActivate() != null) sb.append("Activate: ").append(getActivate()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateThreatIntelSetRequest == false) return false; UpdateThreatIntelSetRequest other = (UpdateThreatIntelSetRequest) obj; if (other.getDetectorId() == null ^ this.getDetectorId() == null) return false; if (other.getDetectorId() != null && other.getDetectorId().equals(this.getDetectorId()) == false) return false; if (other.getThreatIntelSetId() == null ^ this.getThreatIntelSetId() == null) return false; if (other.getThreatIntelSetId() != null && other.getThreatIntelSetId().equals(this.getThreatIntelSetId()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getLocation() == null ^ this.getLocation() == null) return false; if (other.getLocation() != null && other.getLocation().equals(this.getLocation()) == false) return false; if (other.getActivate() == null ^ this.getActivate() == null) return false; if (other.getActivate() != null && other.getActivate().equals(this.getActivate()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDetectorId() == null) ? 0 : getDetectorId().hashCode()); hashCode = prime * hashCode + ((getThreatIntelSetId() == null) ? 0 : getThreatIntelSetId().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getLocation() == null) ? 0 : getLocation().hashCode()); hashCode = prime * hashCode + ((getActivate() == null) ? 0 : getActivate().hashCode()); return hashCode; } @Override public UpdateThreatIntelSetRequest clone() { return (UpdateThreatIntelSetRequest) super.clone(); } }