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

com.amazonaws.services.auditmanager.model.ListControlInsightsByControlDomainResult Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.780
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.auditmanager.model;

import java.io.Serializable;
import javax.annotation.Generated;

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

    /**
     * 

* The control analytics data that the ListControlInsightsByControlDomain API returned. *

*/ private java.util.List controlInsightsMetadata; /** *

* The pagination token that's used to fetch the next set of results. *

*/ private String nextToken; /** *

* The control analytics data that the ListControlInsightsByControlDomain API returned. *

* * @return The control analytics data that the ListControlInsightsByControlDomain API returned. */ public java.util.List getControlInsightsMetadata() { return controlInsightsMetadata; } /** *

* The control analytics data that the ListControlInsightsByControlDomain API returned. *

* * @param controlInsightsMetadata * The control analytics data that the ListControlInsightsByControlDomain API returned. */ public void setControlInsightsMetadata(java.util.Collection controlInsightsMetadata) { if (controlInsightsMetadata == null) { this.controlInsightsMetadata = null; return; } this.controlInsightsMetadata = new java.util.ArrayList(controlInsightsMetadata); } /** *

* The control analytics data that the ListControlInsightsByControlDomain API returned. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setControlInsightsMetadata(java.util.Collection)} or * {@link #withControlInsightsMetadata(java.util.Collection)} if you want to override the existing values. *

* * @param controlInsightsMetadata * The control analytics data that the ListControlInsightsByControlDomain API returned. * @return Returns a reference to this object so that method calls can be chained together. */ public ListControlInsightsByControlDomainResult withControlInsightsMetadata(ControlInsightsMetadataItem... controlInsightsMetadata) { if (this.controlInsightsMetadata == null) { setControlInsightsMetadata(new java.util.ArrayList(controlInsightsMetadata.length)); } for (ControlInsightsMetadataItem ele : controlInsightsMetadata) { this.controlInsightsMetadata.add(ele); } return this; } /** *

* The control analytics data that the ListControlInsightsByControlDomain API returned. *

* * @param controlInsightsMetadata * The control analytics data that the ListControlInsightsByControlDomain API returned. * @return Returns a reference to this object so that method calls can be chained together. */ public ListControlInsightsByControlDomainResult withControlInsightsMetadata(java.util.Collection controlInsightsMetadata) { setControlInsightsMetadata(controlInsightsMetadata); return this; } /** *

* The pagination token that's used to fetch the next set of results. *

* * @param nextToken * The pagination token that's used to fetch the next set of results. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** *

* The pagination token that's used to fetch the next set of results. *

* * @return The pagination token that's used to fetch the next set of results. */ public String getNextToken() { return this.nextToken; } /** *

* The pagination token that's used to fetch the next set of results. *

* * @param nextToken * The pagination token that's used to fetch the next set of results. * @return Returns a reference to this object so that method calls can be chained together. */ public ListControlInsightsByControlDomainResult withNextToken(String nextToken) { setNextToken(nextToken); 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 (getControlInsightsMetadata() != null) sb.append("ControlInsightsMetadata: ").append(getControlInsightsMetadata()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListControlInsightsByControlDomainResult == false) return false; ListControlInsightsByControlDomainResult other = (ListControlInsightsByControlDomainResult) obj; if (other.getControlInsightsMetadata() == null ^ this.getControlInsightsMetadata() == null) return false; if (other.getControlInsightsMetadata() != null && other.getControlInsightsMetadata().equals(this.getControlInsightsMetadata()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getControlInsightsMetadata() == null) ? 0 : getControlInsightsMetadata().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); return hashCode; } @Override public ListControlInsightsByControlDomainResult clone() { try { return (ListControlInsightsByControlDomainResult) 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