Class DescribeComplianceByResourceRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.config.model.DescribeComplianceByResourceRequest
-
- All Implemented Interfaces:
ReadLimitInfo,Serializable,Cloneable
public class DescribeComplianceByResourceRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description DescribeComplianceByResourceRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DescribeComplianceByResourceRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)List<String>getComplianceTypes()Filters the results by compliance.IntegergetLimit()The maximum number of evaluation results returned on each page.StringgetNextToken()ThenextTokenstring returned on a previous page that you use to get the next page of results in a paginated response.StringgetResourceId()The ID of the AWS resource for which you want compliance information.StringgetResourceType()The types of AWS resources for which you want compliance information; for example,AWS::EC2::Instance.inthashCode()voidsetComplianceTypes(Collection<String> complianceTypes)Filters the results by compliance.voidsetLimit(Integer limit)The maximum number of evaluation results returned on each page.voidsetNextToken(String nextToken)ThenextTokenstring returned on a previous page that you use to get the next page of results in a paginated response.voidsetResourceId(String resourceId)The ID of the AWS resource for which you want compliance information.voidsetResourceType(String resourceType)The types of AWS resources for which you want compliance information; for example,AWS::EC2::Instance.StringtoString()Returns a string representation of this object; useful for testing and debugging.DescribeComplianceByResourceRequestwithComplianceTypes(ComplianceType... complianceTypes)Filters the results by compliance.DescribeComplianceByResourceRequestwithComplianceTypes(String... complianceTypes)Filters the results by compliance.DescribeComplianceByResourceRequestwithComplianceTypes(Collection<String> complianceTypes)Filters the results by compliance.DescribeComplianceByResourceRequestwithLimit(Integer limit)The maximum number of evaluation results returned on each page.DescribeComplianceByResourceRequestwithNextToken(String nextToken)ThenextTokenstring returned on a previous page that you use to get the next page of results in a paginated response.DescribeComplianceByResourceRequestwithResourceId(String resourceId)The ID of the AWS resource for which you want compliance information.DescribeComplianceByResourceRequestwithResourceType(String resourceType)The types of AWS resources for which you want compliance information; for example,AWS::EC2::Instance.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
setResourceType
public void setResourceType(String resourceType)
The types of AWS resources for which you want compliance information; for example,
AWS::EC2::Instance. For this action, you can specify that the resource type is an AWS account by specifyingAWS::::Account.- Parameters:
resourceType- The types of AWS resources for which you want compliance information; for example,AWS::EC2::Instance. For this action, you can specify that the resource type is an AWS account by specifyingAWS::::Account.
-
getResourceType
public String getResourceType()
The types of AWS resources for which you want compliance information; for example,
AWS::EC2::Instance. For this action, you can specify that the resource type is an AWS account by specifyingAWS::::Account.- Returns:
- The types of AWS resources for which you want compliance
information; for example,
AWS::EC2::Instance. For this action, you can specify that the resource type is an AWS account by specifyingAWS::::Account.
-
withResourceType
public DescribeComplianceByResourceRequest withResourceType(String resourceType)
The types of AWS resources for which you want compliance information; for example,
AWS::EC2::Instance. For this action, you can specify that the resource type is an AWS account by specifyingAWS::::Account.- Parameters:
resourceType- The types of AWS resources for which you want compliance information; for example,AWS::EC2::Instance. For this action, you can specify that the resource type is an AWS account by specifyingAWS::::Account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setResourceId
public void setResourceId(String resourceId)
The ID of the AWS resource for which you want compliance information. You can specify only one resource ID. If you specify a resource ID, you must also specify a type for
ResourceType.- Parameters:
resourceId- The ID of the AWS resource for which you want compliance information. You can specify only one resource ID. If you specify a resource ID, you must also specify a type forResourceType.
-
getResourceId
public String getResourceId()
The ID of the AWS resource for which you want compliance information. You can specify only one resource ID. If you specify a resource ID, you must also specify a type for
ResourceType.- Returns:
- The ID of the AWS resource for which you want compliance
information. You can specify only one resource ID. If you specify
a resource ID, you must also specify a type for
ResourceType.
-
withResourceId
public DescribeComplianceByResourceRequest withResourceId(String resourceId)
The ID of the AWS resource for which you want compliance information. You can specify only one resource ID. If you specify a resource ID, you must also specify a type for
ResourceType.- Parameters:
resourceId- The ID of the AWS resource for which you want compliance information. You can specify only one resource ID. If you specify a resource ID, you must also specify a type forResourceType.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getComplianceTypes
public List<String> getComplianceTypes()
Filters the results by compliance.
The allowed values are
COMPLIANT,NON_COMPLIANT, andINSUFFICIENT_DATA.- Returns:
- Filters the results by compliance.
The allowed values are
COMPLIANT,NON_COMPLIANT, andINSUFFICIENT_DATA. - See Also:
ComplianceType
-
setComplianceTypes
public void setComplianceTypes(Collection<String> complianceTypes)
Filters the results by compliance.
The allowed values are
COMPLIANT,NON_COMPLIANT, andINSUFFICIENT_DATA.- Parameters:
complianceTypes- Filters the results by compliance.The allowed values are
COMPLIANT,NON_COMPLIANT, andINSUFFICIENT_DATA.- See Also:
ComplianceType
-
withComplianceTypes
public DescribeComplianceByResourceRequest withComplianceTypes(String... complianceTypes)
Filters the results by compliance.
The allowed values are
COMPLIANT,NON_COMPLIANT, andINSUFFICIENT_DATA.NOTE: This method appends the values to the existing list (if any). Use
setComplianceTypes(java.util.Collection)orwithComplianceTypes(java.util.Collection)if you want to override the existing values.- Parameters:
complianceTypes- Filters the results by compliance.The allowed values are
COMPLIANT,NON_COMPLIANT, andINSUFFICIENT_DATA.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ComplianceType
-
withComplianceTypes
public DescribeComplianceByResourceRequest withComplianceTypes(Collection<String> complianceTypes)
Filters the results by compliance.
The allowed values are
COMPLIANT,NON_COMPLIANT, andINSUFFICIENT_DATA.- Parameters:
complianceTypes- Filters the results by compliance.The allowed values are
COMPLIANT,NON_COMPLIANT, andINSUFFICIENT_DATA.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ComplianceType
-
withComplianceTypes
public DescribeComplianceByResourceRequest withComplianceTypes(ComplianceType... complianceTypes)
Filters the results by compliance.
The allowed values are
COMPLIANT,NON_COMPLIANT, andINSUFFICIENT_DATA.- Parameters:
complianceTypes- Filters the results by compliance.The allowed values are
COMPLIANT,NON_COMPLIANT, andINSUFFICIENT_DATA.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ComplianceType
-
setLimit
public void setLimit(Integer limit)
The maximum number of evaluation results returned on each page. The default is 10. You cannot specify a limit greater than 100. If you specify 0, AWS Config uses the default.
- Parameters:
limit- The maximum number of evaluation results returned on each page. The default is 10. You cannot specify a limit greater than 100. If you specify 0, AWS Config uses the default.
-
getLimit
public Integer getLimit()
The maximum number of evaluation results returned on each page. The default is 10. You cannot specify a limit greater than 100. If you specify 0, AWS Config uses the default.
- Returns:
- The maximum number of evaluation results returned on each page. The default is 10. You cannot specify a limit greater than 100. If you specify 0, AWS Config uses the default.
-
withLimit
public DescribeComplianceByResourceRequest withLimit(Integer limit)
The maximum number of evaluation results returned on each page. The default is 10. You cannot specify a limit greater than 100. If you specify 0, AWS Config uses the default.
- Parameters:
limit- The maximum number of evaluation results returned on each page. The default is 10. You cannot specify a limit greater than 100. If you specify 0, AWS Config uses the default.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNextToken
public void setNextToken(String nextToken)
The
nextTokenstring returned on a previous page that you use to get the next page of results in a paginated response.- Parameters:
nextToken- ThenextTokenstring returned on a previous page that you use to get the next page of results in a paginated response.
-
getNextToken
public String getNextToken()
The
nextTokenstring returned on a previous page that you use to get the next page of results in a paginated response.- Returns:
- The
nextTokenstring returned on a previous page that you use to get the next page of results in a paginated response.
-
withNextToken
public DescribeComplianceByResourceRequest withNextToken(String nextToken)
The
nextTokenstring returned on a previous page that you use to get the next page of results in a paginated response.- Parameters:
nextToken- ThenextTokenstring returned on a previous page that you use to get the next page of results in a paginated response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DescribeComplianceByResourceRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-