com.amazonaws.services.detective.model.StartInvestigationRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-detective Show documentation
/*
* 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.detective.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 StartInvestigationRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The Amazon Resource Name (ARN) of the behavior graph.
*
*/
private String graphArn;
/**
*
* The unique Amazon Resource Name (ARN) of the IAM user and IAM role.
*
*/
private String entityArn;
/**
*
* The data and time when the investigation began. The value is an UTC ISO8601 formatted string. For example,
* 2021-08-18T16:35:56.284Z
.
*
*/
private java.util.Date scopeStartTime;
/**
*
* The data and time when the investigation ended. The value is an UTC ISO8601 formatted string. For example,
* 2021-08-18T16:35:56.284Z
.
*
*/
private java.util.Date scopeEndTime;
/**
*
* The Amazon Resource Name (ARN) of the behavior graph.
*
*
* @param graphArn
* The Amazon Resource Name (ARN) of the behavior graph.
*/
public void setGraphArn(String graphArn) {
this.graphArn = graphArn;
}
/**
*
* The Amazon Resource Name (ARN) of the behavior graph.
*
*
* @return The Amazon Resource Name (ARN) of the behavior graph.
*/
public String getGraphArn() {
return this.graphArn;
}
/**
*
* The Amazon Resource Name (ARN) of the behavior graph.
*
*
* @param graphArn
* The Amazon Resource Name (ARN) of the behavior graph.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StartInvestigationRequest withGraphArn(String graphArn) {
setGraphArn(graphArn);
return this;
}
/**
*
* The unique Amazon Resource Name (ARN) of the IAM user and IAM role.
*
*
* @param entityArn
* The unique Amazon Resource Name (ARN) of the IAM user and IAM role.
*/
public void setEntityArn(String entityArn) {
this.entityArn = entityArn;
}
/**
*
* The unique Amazon Resource Name (ARN) of the IAM user and IAM role.
*
*
* @return The unique Amazon Resource Name (ARN) of the IAM user and IAM role.
*/
public String getEntityArn() {
return this.entityArn;
}
/**
*
* The unique Amazon Resource Name (ARN) of the IAM user and IAM role.
*
*
* @param entityArn
* The unique Amazon Resource Name (ARN) of the IAM user and IAM role.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StartInvestigationRequest withEntityArn(String entityArn) {
setEntityArn(entityArn);
return this;
}
/**
*
* The data and time when the investigation began. The value is an UTC ISO8601 formatted string. For example,
* 2021-08-18T16:35:56.284Z
.
*
*
* @param scopeStartTime
* The data and time when the investigation began. The value is an UTC ISO8601 formatted string. For example,
* 2021-08-18T16:35:56.284Z
.
*/
public void setScopeStartTime(java.util.Date scopeStartTime) {
this.scopeStartTime = scopeStartTime;
}
/**
*
* The data and time when the investigation began. The value is an UTC ISO8601 formatted string. For example,
* 2021-08-18T16:35:56.284Z
.
*
*
* @return The data and time when the investigation began. The value is an UTC ISO8601 formatted string. For
* example, 2021-08-18T16:35:56.284Z
.
*/
public java.util.Date getScopeStartTime() {
return this.scopeStartTime;
}
/**
*
* The data and time when the investigation began. The value is an UTC ISO8601 formatted string. For example,
* 2021-08-18T16:35:56.284Z
.
*
*
* @param scopeStartTime
* The data and time when the investigation began. The value is an UTC ISO8601 formatted string. For example,
* 2021-08-18T16:35:56.284Z
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StartInvestigationRequest withScopeStartTime(java.util.Date scopeStartTime) {
setScopeStartTime(scopeStartTime);
return this;
}
/**
*
* The data and time when the investigation ended. The value is an UTC ISO8601 formatted string. For example,
* 2021-08-18T16:35:56.284Z
.
*
*
* @param scopeEndTime
* The data and time when the investigation ended. The value is an UTC ISO8601 formatted string. For example,
* 2021-08-18T16:35:56.284Z
.
*/
public void setScopeEndTime(java.util.Date scopeEndTime) {
this.scopeEndTime = scopeEndTime;
}
/**
*
* The data and time when the investigation ended. The value is an UTC ISO8601 formatted string. For example,
* 2021-08-18T16:35:56.284Z
.
*
*
* @return The data and time when the investigation ended. The value is an UTC ISO8601 formatted string. For
* example, 2021-08-18T16:35:56.284Z
.
*/
public java.util.Date getScopeEndTime() {
return this.scopeEndTime;
}
/**
*
* The data and time when the investigation ended. The value is an UTC ISO8601 formatted string. For example,
* 2021-08-18T16:35:56.284Z
.
*
*
* @param scopeEndTime
* The data and time when the investigation ended. The value is an UTC ISO8601 formatted string. For example,
* 2021-08-18T16:35:56.284Z
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StartInvestigationRequest withScopeEndTime(java.util.Date scopeEndTime) {
setScopeEndTime(scopeEndTime);
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 (getGraphArn() != null)
sb.append("GraphArn: ").append(getGraphArn()).append(",");
if (getEntityArn() != null)
sb.append("EntityArn: ").append(getEntityArn()).append(",");
if (getScopeStartTime() != null)
sb.append("ScopeStartTime: ").append(getScopeStartTime()).append(",");
if (getScopeEndTime() != null)
sb.append("ScopeEndTime: ").append(getScopeEndTime());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof StartInvestigationRequest == false)
return false;
StartInvestigationRequest other = (StartInvestigationRequest) obj;
if (other.getGraphArn() == null ^ this.getGraphArn() == null)
return false;
if (other.getGraphArn() != null && other.getGraphArn().equals(this.getGraphArn()) == false)
return false;
if (other.getEntityArn() == null ^ this.getEntityArn() == null)
return false;
if (other.getEntityArn() != null && other.getEntityArn().equals(this.getEntityArn()) == false)
return false;
if (other.getScopeStartTime() == null ^ this.getScopeStartTime() == null)
return false;
if (other.getScopeStartTime() != null && other.getScopeStartTime().equals(this.getScopeStartTime()) == false)
return false;
if (other.getScopeEndTime() == null ^ this.getScopeEndTime() == null)
return false;
if (other.getScopeEndTime() != null && other.getScopeEndTime().equals(this.getScopeEndTime()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getGraphArn() == null) ? 0 : getGraphArn().hashCode());
hashCode = prime * hashCode + ((getEntityArn() == null) ? 0 : getEntityArn().hashCode());
hashCode = prime * hashCode + ((getScopeStartTime() == null) ? 0 : getScopeStartTime().hashCode());
hashCode = prime * hashCode + ((getScopeEndTime() == null) ? 0 : getScopeEndTime().hashCode());
return hashCode;
}
@Override
public StartInvestigationRequest clone() {
return (StartInvestigationRequest) super.clone();
}
}