All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.inspector2.model.AggregationResponse Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Inspector2 module holds the client classes that are used for communicating with Inspector2 Service

There is a newer version: 1.12.772
Show newest version
/*
 * 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.inspector2.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* A structure that contains details about the results of an aggregation type. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AggregationResponse implements Serializable, Cloneable, StructuredPojo { /** *

* An object that contains details about an aggregation response based on Amazon Web Services account IDs. *

*/ private AccountAggregationResponse accountAggregation; /** *

* An object that contains details about an aggregation response based on Amazon Machine Images (AMIs). *

*/ private AmiAggregationResponse amiAggregation; /** *

* An object that contains details about an aggregation response based on Amazon ECR container images. *

*/ private AwsEcrContainerAggregationResponse awsEcrContainerAggregation; /** *

* An object that contains details about an aggregation response based on Amazon EC2 instances. *

*/ private Ec2InstanceAggregationResponse ec2InstanceAggregation; /** *

* An object that contains details about an aggregation response based on finding types. *

*/ private FindingTypeAggregationResponse findingTypeAggregation; /** *

* An object that contains details about an aggregation response based on container image layers. *

*/ private ImageLayerAggregationResponse imageLayerAggregation; /** *

* An aggregation of findings by Amazon Web Services Lambda function. *

*/ private LambdaFunctionAggregationResponse lambdaFunctionAggregation; /** *

* An aggregation of findings by Amazon Web Services Lambda layer. *

*/ private LambdaLayerAggregationResponse lambdaLayerAggregation; /** *

* An object that contains details about an aggregation response based on operating system package type. *

*/ private PackageAggregationResponse packageAggregation; /** *

* An object that contains details about an aggregation response based on Amazon ECR repositories. *

*/ private RepositoryAggregationResponse repositoryAggregation; /** *

* An object that contains details about an aggregation response based on finding title. *

*/ private TitleAggregationResponse titleAggregation; /** *

* An object that contains details about an aggregation response based on Amazon Web Services account IDs. *

* * @param accountAggregation * An object that contains details about an aggregation response based on Amazon Web Services account IDs. */ public void setAccountAggregation(AccountAggregationResponse accountAggregation) { this.accountAggregation = accountAggregation; } /** *

* An object that contains details about an aggregation response based on Amazon Web Services account IDs. *

* * @return An object that contains details about an aggregation response based on Amazon Web Services account IDs. */ public AccountAggregationResponse getAccountAggregation() { return this.accountAggregation; } /** *

* An object that contains details about an aggregation response based on Amazon Web Services account IDs. *

* * @param accountAggregation * An object that contains details about an aggregation response based on Amazon Web Services account IDs. * @return Returns a reference to this object so that method calls can be chained together. */ public AggregationResponse withAccountAggregation(AccountAggregationResponse accountAggregation) { setAccountAggregation(accountAggregation); return this; } /** *

* An object that contains details about an aggregation response based on Amazon Machine Images (AMIs). *

* * @param amiAggregation * An object that contains details about an aggregation response based on Amazon Machine Images (AMIs). */ public void setAmiAggregation(AmiAggregationResponse amiAggregation) { this.amiAggregation = amiAggregation; } /** *

* An object that contains details about an aggregation response based on Amazon Machine Images (AMIs). *

* * @return An object that contains details about an aggregation response based on Amazon Machine Images (AMIs). */ public AmiAggregationResponse getAmiAggregation() { return this.amiAggregation; } /** *

* An object that contains details about an aggregation response based on Amazon Machine Images (AMIs). *

* * @param amiAggregation * An object that contains details about an aggregation response based on Amazon Machine Images (AMIs). * @return Returns a reference to this object so that method calls can be chained together. */ public AggregationResponse withAmiAggregation(AmiAggregationResponse amiAggregation) { setAmiAggregation(amiAggregation); return this; } /** *

* An object that contains details about an aggregation response based on Amazon ECR container images. *

* * @param awsEcrContainerAggregation * An object that contains details about an aggregation response based on Amazon ECR container images. */ public void setAwsEcrContainerAggregation(AwsEcrContainerAggregationResponse awsEcrContainerAggregation) { this.awsEcrContainerAggregation = awsEcrContainerAggregation; } /** *

* An object that contains details about an aggregation response based on Amazon ECR container images. *

* * @return An object that contains details about an aggregation response based on Amazon ECR container images. */ public AwsEcrContainerAggregationResponse getAwsEcrContainerAggregation() { return this.awsEcrContainerAggregation; } /** *

* An object that contains details about an aggregation response based on Amazon ECR container images. *

* * @param awsEcrContainerAggregation * An object that contains details about an aggregation response based on Amazon ECR container images. * @return Returns a reference to this object so that method calls can be chained together. */ public AggregationResponse withAwsEcrContainerAggregation(AwsEcrContainerAggregationResponse awsEcrContainerAggregation) { setAwsEcrContainerAggregation(awsEcrContainerAggregation); return this; } /** *

* An object that contains details about an aggregation response based on Amazon EC2 instances. *

* * @param ec2InstanceAggregation * An object that contains details about an aggregation response based on Amazon EC2 instances. */ public void setEc2InstanceAggregation(Ec2InstanceAggregationResponse ec2InstanceAggregation) { this.ec2InstanceAggregation = ec2InstanceAggregation; } /** *

* An object that contains details about an aggregation response based on Amazon EC2 instances. *

* * @return An object that contains details about an aggregation response based on Amazon EC2 instances. */ public Ec2InstanceAggregationResponse getEc2InstanceAggregation() { return this.ec2InstanceAggregation; } /** *

* An object that contains details about an aggregation response based on Amazon EC2 instances. *

* * @param ec2InstanceAggregation * An object that contains details about an aggregation response based on Amazon EC2 instances. * @return Returns a reference to this object so that method calls can be chained together. */ public AggregationResponse withEc2InstanceAggregation(Ec2InstanceAggregationResponse ec2InstanceAggregation) { setEc2InstanceAggregation(ec2InstanceAggregation); return this; } /** *

* An object that contains details about an aggregation response based on finding types. *

* * @param findingTypeAggregation * An object that contains details about an aggregation response based on finding types. */ public void setFindingTypeAggregation(FindingTypeAggregationResponse findingTypeAggregation) { this.findingTypeAggregation = findingTypeAggregation; } /** *

* An object that contains details about an aggregation response based on finding types. *

* * @return An object that contains details about an aggregation response based on finding types. */ public FindingTypeAggregationResponse getFindingTypeAggregation() { return this.findingTypeAggregation; } /** *

* An object that contains details about an aggregation response based on finding types. *

* * @param findingTypeAggregation * An object that contains details about an aggregation response based on finding types. * @return Returns a reference to this object so that method calls can be chained together. */ public AggregationResponse withFindingTypeAggregation(FindingTypeAggregationResponse findingTypeAggregation) { setFindingTypeAggregation(findingTypeAggregation); return this; } /** *

* An object that contains details about an aggregation response based on container image layers. *

* * @param imageLayerAggregation * An object that contains details about an aggregation response based on container image layers. */ public void setImageLayerAggregation(ImageLayerAggregationResponse imageLayerAggregation) { this.imageLayerAggregation = imageLayerAggregation; } /** *

* An object that contains details about an aggregation response based on container image layers. *

* * @return An object that contains details about an aggregation response based on container image layers. */ public ImageLayerAggregationResponse getImageLayerAggregation() { return this.imageLayerAggregation; } /** *

* An object that contains details about an aggregation response based on container image layers. *

* * @param imageLayerAggregation * An object that contains details about an aggregation response based on container image layers. * @return Returns a reference to this object so that method calls can be chained together. */ public AggregationResponse withImageLayerAggregation(ImageLayerAggregationResponse imageLayerAggregation) { setImageLayerAggregation(imageLayerAggregation); return this; } /** *

* An aggregation of findings by Amazon Web Services Lambda function. *

* * @param lambdaFunctionAggregation * An aggregation of findings by Amazon Web Services Lambda function. */ public void setLambdaFunctionAggregation(LambdaFunctionAggregationResponse lambdaFunctionAggregation) { this.lambdaFunctionAggregation = lambdaFunctionAggregation; } /** *

* An aggregation of findings by Amazon Web Services Lambda function. *

* * @return An aggregation of findings by Amazon Web Services Lambda function. */ public LambdaFunctionAggregationResponse getLambdaFunctionAggregation() { return this.lambdaFunctionAggregation; } /** *

* An aggregation of findings by Amazon Web Services Lambda function. *

* * @param lambdaFunctionAggregation * An aggregation of findings by Amazon Web Services Lambda function. * @return Returns a reference to this object so that method calls can be chained together. */ public AggregationResponse withLambdaFunctionAggregation(LambdaFunctionAggregationResponse lambdaFunctionAggregation) { setLambdaFunctionAggregation(lambdaFunctionAggregation); return this; } /** *

* An aggregation of findings by Amazon Web Services Lambda layer. *

* * @param lambdaLayerAggregation * An aggregation of findings by Amazon Web Services Lambda layer. */ public void setLambdaLayerAggregation(LambdaLayerAggregationResponse lambdaLayerAggregation) { this.lambdaLayerAggregation = lambdaLayerAggregation; } /** *

* An aggregation of findings by Amazon Web Services Lambda layer. *

* * @return An aggregation of findings by Amazon Web Services Lambda layer. */ public LambdaLayerAggregationResponse getLambdaLayerAggregation() { return this.lambdaLayerAggregation; } /** *

* An aggregation of findings by Amazon Web Services Lambda layer. *

* * @param lambdaLayerAggregation * An aggregation of findings by Amazon Web Services Lambda layer. * @return Returns a reference to this object so that method calls can be chained together. */ public AggregationResponse withLambdaLayerAggregation(LambdaLayerAggregationResponse lambdaLayerAggregation) { setLambdaLayerAggregation(lambdaLayerAggregation); return this; } /** *

* An object that contains details about an aggregation response based on operating system package type. *

* * @param packageAggregation * An object that contains details about an aggregation response based on operating system package type. */ public void setPackageAggregation(PackageAggregationResponse packageAggregation) { this.packageAggregation = packageAggregation; } /** *

* An object that contains details about an aggregation response based on operating system package type. *

* * @return An object that contains details about an aggregation response based on operating system package type. */ public PackageAggregationResponse getPackageAggregation() { return this.packageAggregation; } /** *

* An object that contains details about an aggregation response based on operating system package type. *

* * @param packageAggregation * An object that contains details about an aggregation response based on operating system package type. * @return Returns a reference to this object so that method calls can be chained together. */ public AggregationResponse withPackageAggregation(PackageAggregationResponse packageAggregation) { setPackageAggregation(packageAggregation); return this; } /** *

* An object that contains details about an aggregation response based on Amazon ECR repositories. *

* * @param repositoryAggregation * An object that contains details about an aggregation response based on Amazon ECR repositories. */ public void setRepositoryAggregation(RepositoryAggregationResponse repositoryAggregation) { this.repositoryAggregation = repositoryAggregation; } /** *

* An object that contains details about an aggregation response based on Amazon ECR repositories. *

* * @return An object that contains details about an aggregation response based on Amazon ECR repositories. */ public RepositoryAggregationResponse getRepositoryAggregation() { return this.repositoryAggregation; } /** *

* An object that contains details about an aggregation response based on Amazon ECR repositories. *

* * @param repositoryAggregation * An object that contains details about an aggregation response based on Amazon ECR repositories. * @return Returns a reference to this object so that method calls can be chained together. */ public AggregationResponse withRepositoryAggregation(RepositoryAggregationResponse repositoryAggregation) { setRepositoryAggregation(repositoryAggregation); return this; } /** *

* An object that contains details about an aggregation response based on finding title. *

* * @param titleAggregation * An object that contains details about an aggregation response based on finding title. */ public void setTitleAggregation(TitleAggregationResponse titleAggregation) { this.titleAggregation = titleAggregation; } /** *

* An object that contains details about an aggregation response based on finding title. *

* * @return An object that contains details about an aggregation response based on finding title. */ public TitleAggregationResponse getTitleAggregation() { return this.titleAggregation; } /** *

* An object that contains details about an aggregation response based on finding title. *

* * @param titleAggregation * An object that contains details about an aggregation response based on finding title. * @return Returns a reference to this object so that method calls can be chained together. */ public AggregationResponse withTitleAggregation(TitleAggregationResponse titleAggregation) { setTitleAggregation(titleAggregation); 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 (getAccountAggregation() != null) sb.append("AccountAggregation: ").append(getAccountAggregation()).append(","); if (getAmiAggregation() != null) sb.append("AmiAggregation: ").append(getAmiAggregation()).append(","); if (getAwsEcrContainerAggregation() != null) sb.append("AwsEcrContainerAggregation: ").append(getAwsEcrContainerAggregation()).append(","); if (getEc2InstanceAggregation() != null) sb.append("Ec2InstanceAggregation: ").append(getEc2InstanceAggregation()).append(","); if (getFindingTypeAggregation() != null) sb.append("FindingTypeAggregation: ").append(getFindingTypeAggregation()).append(","); if (getImageLayerAggregation() != null) sb.append("ImageLayerAggregation: ").append(getImageLayerAggregation()).append(","); if (getLambdaFunctionAggregation() != null) sb.append("LambdaFunctionAggregation: ").append(getLambdaFunctionAggregation()).append(","); if (getLambdaLayerAggregation() != null) sb.append("LambdaLayerAggregation: ").append(getLambdaLayerAggregation()).append(","); if (getPackageAggregation() != null) sb.append("PackageAggregation: ").append(getPackageAggregation()).append(","); if (getRepositoryAggregation() != null) sb.append("RepositoryAggregation: ").append(getRepositoryAggregation()).append(","); if (getTitleAggregation() != null) sb.append("TitleAggregation: ").append(getTitleAggregation()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AggregationResponse == false) return false; AggregationResponse other = (AggregationResponse) obj; if (other.getAccountAggregation() == null ^ this.getAccountAggregation() == null) return false; if (other.getAccountAggregation() != null && other.getAccountAggregation().equals(this.getAccountAggregation()) == false) return false; if (other.getAmiAggregation() == null ^ this.getAmiAggregation() == null) return false; if (other.getAmiAggregation() != null && other.getAmiAggregation().equals(this.getAmiAggregation()) == false) return false; if (other.getAwsEcrContainerAggregation() == null ^ this.getAwsEcrContainerAggregation() == null) return false; if (other.getAwsEcrContainerAggregation() != null && other.getAwsEcrContainerAggregation().equals(this.getAwsEcrContainerAggregation()) == false) return false; if (other.getEc2InstanceAggregation() == null ^ this.getEc2InstanceAggregation() == null) return false; if (other.getEc2InstanceAggregation() != null && other.getEc2InstanceAggregation().equals(this.getEc2InstanceAggregation()) == false) return false; if (other.getFindingTypeAggregation() == null ^ this.getFindingTypeAggregation() == null) return false; if (other.getFindingTypeAggregation() != null && other.getFindingTypeAggregation().equals(this.getFindingTypeAggregation()) == false) return false; if (other.getImageLayerAggregation() == null ^ this.getImageLayerAggregation() == null) return false; if (other.getImageLayerAggregation() != null && other.getImageLayerAggregation().equals(this.getImageLayerAggregation()) == false) return false; if (other.getLambdaFunctionAggregation() == null ^ this.getLambdaFunctionAggregation() == null) return false; if (other.getLambdaFunctionAggregation() != null && other.getLambdaFunctionAggregation().equals(this.getLambdaFunctionAggregation()) == false) return false; if (other.getLambdaLayerAggregation() == null ^ this.getLambdaLayerAggregation() == null) return false; if (other.getLambdaLayerAggregation() != null && other.getLambdaLayerAggregation().equals(this.getLambdaLayerAggregation()) == false) return false; if (other.getPackageAggregation() == null ^ this.getPackageAggregation() == null) return false; if (other.getPackageAggregation() != null && other.getPackageAggregation().equals(this.getPackageAggregation()) == false) return false; if (other.getRepositoryAggregation() == null ^ this.getRepositoryAggregation() == null) return false; if (other.getRepositoryAggregation() != null && other.getRepositoryAggregation().equals(this.getRepositoryAggregation()) == false) return false; if (other.getTitleAggregation() == null ^ this.getTitleAggregation() == null) return false; if (other.getTitleAggregation() != null && other.getTitleAggregation().equals(this.getTitleAggregation()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAccountAggregation() == null) ? 0 : getAccountAggregation().hashCode()); hashCode = prime * hashCode + ((getAmiAggregation() == null) ? 0 : getAmiAggregation().hashCode()); hashCode = prime * hashCode + ((getAwsEcrContainerAggregation() == null) ? 0 : getAwsEcrContainerAggregation().hashCode()); hashCode = prime * hashCode + ((getEc2InstanceAggregation() == null) ? 0 : getEc2InstanceAggregation().hashCode()); hashCode = prime * hashCode + ((getFindingTypeAggregation() == null) ? 0 : getFindingTypeAggregation().hashCode()); hashCode = prime * hashCode + ((getImageLayerAggregation() == null) ? 0 : getImageLayerAggregation().hashCode()); hashCode = prime * hashCode + ((getLambdaFunctionAggregation() == null) ? 0 : getLambdaFunctionAggregation().hashCode()); hashCode = prime * hashCode + ((getLambdaLayerAggregation() == null) ? 0 : getLambdaLayerAggregation().hashCode()); hashCode = prime * hashCode + ((getPackageAggregation() == null) ? 0 : getPackageAggregation().hashCode()); hashCode = prime * hashCode + ((getRepositoryAggregation() == null) ? 0 : getRepositoryAggregation().hashCode()); hashCode = prime * hashCode + ((getTitleAggregation() == null) ? 0 : getTitleAggregation().hashCode()); return hashCode; } @Override public AggregationResponse clone() { try { return (AggregationResponse) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.inspector2.model.transform.AggregationResponseMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy