/* * 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.config.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 GetComplianceDetailsByResourceRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** ** The type of the Amazon Web Services resource for which you want compliance information. *
*/ private String resourceType; /** ** The ID of the Amazon Web Services resource for which you want compliance information. *
*/ private String resourceId; /** ** Filters the results by compliance. *
*
* INSUFFICIENT_DATA
is a valid ComplianceType
that is returned when an Config rule cannot
* be evaluated. However, INSUFFICIENT_DATA
cannot be used as a ComplianceType
for
* filtering results.
*
* The nextToken
string returned on a previous page that you use to get the next page of results in a
* paginated response.
*
* The unique ID of Amazon Web Services resource execution for which you want to retrieve evaluation results. *
*
* You need to only provide either a ResourceEvaluationID
or a ResourceID
and
* ResourceType
.
*
* The type of the Amazon Web Services resource for which you want compliance information. *
* * @param resourceType * The type of the Amazon Web Services resource for which you want compliance information. */ public void setResourceType(String resourceType) { this.resourceType = resourceType; } /** ** The type of the Amazon Web Services resource for which you want compliance information. *
* * @return The type of the Amazon Web Services resource for which you want compliance information. */ public String getResourceType() { return this.resourceType; } /** ** The type of the Amazon Web Services resource for which you want compliance information. *
* * @param resourceType * The type of the Amazon Web Services resource for which you want compliance information. * @return Returns a reference to this object so that method calls can be chained together. */ public GetComplianceDetailsByResourceRequest withResourceType(String resourceType) { setResourceType(resourceType); return this; } /** ** The ID of the Amazon Web Services resource for which you want compliance information. *
* * @param resourceId * The ID of the Amazon Web Services resource for which you want compliance information. */ public void setResourceId(String resourceId) { this.resourceId = resourceId; } /** ** The ID of the Amazon Web Services resource for which you want compliance information. *
* * @return The ID of the Amazon Web Services resource for which you want compliance information. */ public String getResourceId() { return this.resourceId; } /** ** The ID of the Amazon Web Services resource for which you want compliance information. *
* * @param resourceId * The ID of the Amazon Web Services resource for which you want compliance information. * @return Returns a reference to this object so that method calls can be chained together. */ public GetComplianceDetailsByResourceRequest withResourceId(String resourceId) { setResourceId(resourceId); return this; } /** ** Filters the results by compliance. *
*
* INSUFFICIENT_DATA
is a valid ComplianceType
that is returned when an Config rule cannot
* be evaluated. However, INSUFFICIENT_DATA
cannot be used as a ComplianceType
for
* filtering results.
*
*
* Filters the results by compliance.
*
* INSUFFICIENT_DATA
is a valid ComplianceType
that is returned when an Config
* rule cannot be evaluated. However, INSUFFICIENT_DATA
cannot be used as a
* ComplianceType
for filtering results.
* @see ComplianceType
*/
public java.util.ListINSUFFICIENT_DATA
is a valid ComplianceType
that is returned when an Config rule cannot
* be evaluated. However, INSUFFICIENT_DATA
cannot be used as a ComplianceType
for
* filtering results.
*
*
* Filters the results by compliance.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setComplianceTypes(java.util.Collection)} or {@link #withComplianceTypes(java.util.Collection)} if you
* want to override the existing values.
* INSUFFICIENT_DATA
is a valid ComplianceType
that is returned when an Config rule
* cannot be evaluated. However, INSUFFICIENT_DATA
cannot be used as a
* ComplianceType
for filtering results.
* @see ComplianceType
*/
public void setComplianceTypes(java.util.CollectionINSUFFICIENT_DATA
is a valid ComplianceType
that is returned when an Config rule cannot
* be evaluated. However, INSUFFICIENT_DATA
cannot be used as a ComplianceType
for
* filtering results.
*
*
* Filters the results by compliance.
*
* INSUFFICIENT_DATA
is a valid ComplianceType
that is returned when an Config rule
* cannot be evaluated. However, INSUFFICIENT_DATA
cannot be used as a
* ComplianceType
for filtering results.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ComplianceType
*/
public GetComplianceDetailsByResourceRequest withComplianceTypes(String... complianceTypes) {
if (this.complianceTypes == null) {
setComplianceTypes(new com.amazonaws.internal.SdkInternalListINSUFFICIENT_DATA
is a valid ComplianceType
that is returned when an Config rule cannot
* be evaluated. However, INSUFFICIENT_DATA
cannot be used as a ComplianceType
for
* filtering results.
*
*
* Filters the results by compliance.
*
* INSUFFICIENT_DATA
is a valid ComplianceType
that is returned when an Config rule
* cannot be evaluated. However, INSUFFICIENT_DATA
cannot be used as a
* ComplianceType
for filtering results.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ComplianceType
*/
public GetComplianceDetailsByResourceRequest withComplianceTypes(java.util.CollectionINSUFFICIENT_DATA
is a valid ComplianceType
that is returned when an Config rule cannot
* be evaluated. However, INSUFFICIENT_DATA
cannot be used as a ComplianceType
for
* filtering results.
*
*
* The
* The
* The
* The unique ID of Amazon Web Services resource execution for which you want to retrieve evaluation results.
*
* You need to only provide either a INSUFFICIENT_DATA
is a valid ComplianceType
that is returned when an Config rule
* cannot be evaluated. However, INSUFFICIENT_DATA
cannot be used as a
* ComplianceType
for filtering results.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ComplianceType
*/
public GetComplianceDetailsByResourceRequest withComplianceTypes(ComplianceType... complianceTypes) {
com.amazonaws.internal.SdkInternalListnextToken
string returned on a previous page that you use to get the next page of results in a
* paginated response.
* nextToken
string returned on a previous page that you use to get the next page of results
* in a paginated response.
*/
public void setNextToken(String nextToken) {
this.nextToken = nextToken;
}
/**
* nextToken
string returned on a previous page that you use to get the next page of results in a
* paginated response.
* nextToken
string returned on a previous page that you use to get the next page of
* results in a paginated response.
*/
public String getNextToken() {
return this.nextToken;
}
/**
* nextToken
string returned on a previous page that you use to get the next page of results in a
* paginated response.
* nextToken
string returned on a previous page that you use to get the next page of results
* in a paginated response.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetComplianceDetailsByResourceRequest withNextToken(String nextToken) {
setNextToken(nextToken);
return this;
}
/**
* ResourceEvaluationID
or a ResourceID
and
* ResourceType
.
*
* You need to only provide either a ResourceEvaluationID
or a ResourceID
and
* ResourceType
.
*
* The unique ID of Amazon Web Services resource execution for which you want to retrieve evaluation results. *
*
* You need to only provide either a ResourceEvaluationID
or a ResourceID
and
* ResourceType
.
*
* You need to only provide either a ResourceEvaluationID
or a ResourceID
and
* ResourceType
.
*
* The unique ID of Amazon Web Services resource execution for which you want to retrieve evaluation results. *
*
* You need to only provide either a ResourceEvaluationID
or a ResourceID
and
* ResourceType
.
*
* You need to only provide either a ResourceEvaluationID
or a ResourceID
and
* ResourceType
.
*