/* * 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.securityhub.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* The insight results returned by the GetInsightResults
operation.
*
* The ARN of the insight whose results are returned by the GetInsightResults
operation.
*
* The attribute that the findings are grouped by for the insight whose results are returned by the
* GetInsightResults
operation.
*
* The list of insight result values returned by the GetInsightResults
operation.
*
* The ARN of the insight whose results are returned by the GetInsightResults
operation.
*
GetInsightResults
operation.
*/
public void setInsightArn(String insightArn) {
this.insightArn = insightArn;
}
/**
*
* The ARN of the insight whose results are returned by the GetInsightResults
operation.
*
GetInsightResults
operation.
*/
public String getInsightArn() {
return this.insightArn;
}
/**
*
* The ARN of the insight whose results are returned by the GetInsightResults
operation.
*
GetInsightResults
operation.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public InsightResults withInsightArn(String insightArn) {
setInsightArn(insightArn);
return this;
}
/**
*
* The attribute that the findings are grouped by for the insight whose results are returned by the
* GetInsightResults
operation.
*
GetInsightResults
operation.
*/
public void setGroupByAttribute(String groupByAttribute) {
this.groupByAttribute = groupByAttribute;
}
/**
*
* The attribute that the findings are grouped by for the insight whose results are returned by the
* GetInsightResults
operation.
*
GetInsightResults
operation.
*/
public String getGroupByAttribute() {
return this.groupByAttribute;
}
/**
*
* The attribute that the findings are grouped by for the insight whose results are returned by the
* GetInsightResults
operation.
*
GetInsightResults
operation.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public InsightResults withGroupByAttribute(String groupByAttribute) {
setGroupByAttribute(groupByAttribute);
return this;
}
/**
*
* The list of insight result values returned by the GetInsightResults
operation.
*
GetInsightResults
operation.
*/
public java.util.List
* The list of insight result values returned by the GetInsightResults
operation.
*
GetInsightResults
operation.
*/
public void setResultValues(java.util.Collection
* The list of insight result values returned by the GetInsightResults
operation.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setResultValues(java.util.Collection)} or {@link #withResultValues(java.util.Collection)} if you want to * override the existing values. *
* * @param resultValues * The list of insight result values returned by theGetInsightResults
operation.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public InsightResults withResultValues(InsightResultValue... resultValues) {
if (this.resultValues == null) {
setResultValues(new java.util.ArrayList
* The list of insight result values returned by the GetInsightResults
operation.
*
GetInsightResults
operation.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public InsightResults withResultValues(java.util.Collection