com.amazonaws.services.guardduty.model.GetDetectorResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-java-sdk-guardduty Show documentation
Show all versions of aws-java-sdk-guardduty Show documentation
The AWS Java SDK for Amazon GuardDuty module holds the client classes that are used for communicating with Amazon GuardDuty Service
/*
* Copyright 2013-2018 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;
/**
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class GetDetectorResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {
private String createdAt;
private String findingPublishingFrequency;
private String serviceRole;
private String status;
private String updatedAt;
/**
* @param createdAt
*/
public void setCreatedAt(String createdAt) {
this.createdAt = createdAt;
}
/**
* @return
*/
public String getCreatedAt() {
return this.createdAt;
}
/**
* @param createdAt
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetDetectorResult withCreatedAt(String createdAt) {
setCreatedAt(createdAt);
return this;
}
/**
* @param findingPublishingFrequency
* @see FindingPublishingFrequency
*/
public void setFindingPublishingFrequency(String findingPublishingFrequency) {
this.findingPublishingFrequency = findingPublishingFrequency;
}
/**
* @return
* @see FindingPublishingFrequency
*/
public String getFindingPublishingFrequency() {
return this.findingPublishingFrequency;
}
/**
* @param findingPublishingFrequency
* @return Returns a reference to this object so that method calls can be chained together.
* @see FindingPublishingFrequency
*/
public GetDetectorResult withFindingPublishingFrequency(String findingPublishingFrequency) {
setFindingPublishingFrequency(findingPublishingFrequency);
return this;
}
/**
* @param findingPublishingFrequency
* @return Returns a reference to this object so that method calls can be chained together.
* @see FindingPublishingFrequency
*/
public GetDetectorResult withFindingPublishingFrequency(FindingPublishingFrequency findingPublishingFrequency) {
this.findingPublishingFrequency = findingPublishingFrequency.toString();
return this;
}
/**
* @param serviceRole
*/
public void setServiceRole(String serviceRole) {
this.serviceRole = serviceRole;
}
/**
* @return
*/
public String getServiceRole() {
return this.serviceRole;
}
/**
* @param serviceRole
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetDetectorResult withServiceRole(String serviceRole) {
setServiceRole(serviceRole);
return this;
}
/**
* @param status
* @see DetectorStatus
*/
public void setStatus(String status) {
this.status = status;
}
/**
* @return
* @see DetectorStatus
*/
public String getStatus() {
return this.status;
}
/**
* @param status
* @return Returns a reference to this object so that method calls can be chained together.
* @see DetectorStatus
*/
public GetDetectorResult withStatus(String status) {
setStatus(status);
return this;
}
/**
* @param status
* @return Returns a reference to this object so that method calls can be chained together.
* @see DetectorStatus
*/
public GetDetectorResult withStatus(DetectorStatus status) {
this.status = status.toString();
return this;
}
/**
* @param updatedAt
*/
public void setUpdatedAt(String updatedAt) {
this.updatedAt = updatedAt;
}
/**
* @return
*/
public String getUpdatedAt() {
return this.updatedAt;
}
/**
* @param updatedAt
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetDetectorResult withUpdatedAt(String updatedAt) {
setUpdatedAt(updatedAt);
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 (getCreatedAt() != null)
sb.append("CreatedAt: ").append(getCreatedAt()).append(",");
if (getFindingPublishingFrequency() != null)
sb.append("FindingPublishingFrequency: ").append(getFindingPublishingFrequency()).append(",");
if (getServiceRole() != null)
sb.append("ServiceRole: ").append(getServiceRole()).append(",");
if (getStatus() != null)
sb.append("Status: ").append(getStatus()).append(",");
if (getUpdatedAt() != null)
sb.append("UpdatedAt: ").append(getUpdatedAt());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof GetDetectorResult == false)
return false;
GetDetectorResult other = (GetDetectorResult) obj;
if (other.getCreatedAt() == null ^ this.getCreatedAt() == null)
return false;
if (other.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == false)
return false;
if (other.getFindingPublishingFrequency() == null ^ this.getFindingPublishingFrequency() == null)
return false;
if (other.getFindingPublishingFrequency() != null && other.getFindingPublishingFrequency().equals(this.getFindingPublishingFrequency()) == false)
return false;
if (other.getServiceRole() == null ^ this.getServiceRole() == null)
return false;
if (other.getServiceRole() != null && other.getServiceRole().equals(this.getServiceRole()) == false)
return false;
if (other.getStatus() == null ^ this.getStatus() == null)
return false;
if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false)
return false;
if (other.getUpdatedAt() == null ^ this.getUpdatedAt() == null)
return false;
if (other.getUpdatedAt() != null && other.getUpdatedAt().equals(this.getUpdatedAt()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode());
hashCode = prime * hashCode + ((getFindingPublishingFrequency() == null) ? 0 : getFindingPublishingFrequency().hashCode());
hashCode = prime * hashCode + ((getServiceRole() == null) ? 0 : getServiceRole().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode + ((getUpdatedAt() == null) ? 0 : getUpdatedAt().hashCode());
return hashCode;
}
@Override
public GetDetectorResult clone() {
try {
return (GetDetectorResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy