Class DescribeComplianceByResourceRequest
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
Filters the results by compliance.getLimit()
The maximum number of evaluation results returned on each page.ThenextToken
string returned on a previous page that you use to get the next page of results in a paginated response.The ID of the AWS resource for which you want compliance information.The types of AWS resources for which you want compliance information; for example,AWS::EC2::Instance
.int
hashCode()
void
setComplianceTypes
(Collection<String> complianceTypes) Filters the results by compliance.void
The maximum number of evaluation results returned on each page.void
setNextToken
(String nextToken) ThenextToken
string returned on a previous page that you use to get the next page of results in a paginated response.void
setResourceId
(String resourceId) The ID of the AWS resource for which you want compliance information.void
setResourceType
(String resourceType) The types of AWS resources for which you want compliance information; for example,AWS::EC2::Instance
.toString()
Returns a string representation of this object; useful for testing and debugging.withComplianceTypes
(ComplianceType... complianceTypes) Filters the results by compliance.withComplianceTypes
(String... complianceTypes) Filters the results by compliance.withComplianceTypes
(Collection<String> complianceTypes) Filters the results by compliance.The maximum number of evaluation results returned on each page.withNextToken
(String nextToken) ThenextToken
string returned on a previous page that you use to get the next page of results in a paginated response.withResourceId
(String resourceId) The ID of the AWS resource for which you want compliance information.withResourceType
(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
-
Constructor Details
-
DescribeComplianceByResourceRequest
public DescribeComplianceByResourceRequest()
-
-
Method Details
-
setResourceType
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
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
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
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
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
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
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:
-
setComplianceTypes
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:
-
withComplianceTypes
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:
-
withComplianceTypes
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:
-
withComplianceTypes
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:
-
setLimit
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
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
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
The
nextToken
string returned on a previous page that you use to get the next page of results in a paginated response.- Parameters:
nextToken
- ThenextToken
string returned on a previous page that you use to get the next page of results in a paginated response.
-
getNextToken
The
nextToken
string returned on a previous page that you use to get the next page of results in a paginated response.- Returns:
- The
nextToken
string returned on a previous page that you use to get the next page of results in a paginated response.
-
withNextToken
The
nextToken
string returned on a previous page that you use to get the next page of results in a paginated response.- Parameters:
nextToken
- ThenextToken
string 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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
-