public class DescribeComplianceByResourceRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<java.lang.String> |
complianceTypes
Filters the results by compliance.
|
private java.lang.Integer |
limit
The maximum number of evaluation results returned on each page.
|
private java.lang.String |
nextToken
The
nextToken string returned on a previous page that you
use to get the next page of results in a paginated response. |
private java.lang.String |
resourceId
The ID of the AWS resource for which you want compliance information.
|
private java.lang.String |
resourceType
The types of AWS resources for which you want compliance information; for
example,
AWS::EC2::Instance . |
NOOP
Constructor and Description |
---|
DescribeComplianceByResourceRequest() |
Modifier and Type | Method and Description |
---|---|
DescribeComplianceByResourceRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.String> |
getComplianceTypes()
Filters the results by compliance.
|
java.lang.Integer |
getLimit()
The maximum number of evaluation results returned on each page.
|
java.lang.String |
getNextToken()
The
nextToken string returned on a previous page that you
use to get the next page of results in a paginated response. |
java.lang.String |
getResourceId()
The ID of the AWS resource for which you want compliance information.
|
java.lang.String |
getResourceType()
The types of AWS resources for which you want compliance information; for
example,
AWS::EC2::Instance . |
int |
hashCode() |
void |
setComplianceTypes(java.util.Collection<java.lang.String> complianceTypes)
Filters the results by compliance.
|
void |
setLimit(java.lang.Integer limit)
The maximum number of evaluation results returned on each page.
|
void |
setNextToken(java.lang.String nextToken)
The
nextToken string returned on a previous page that you
use to get the next page of results in a paginated response. |
void |
setResourceId(java.lang.String resourceId)
The ID of the AWS resource for which you want compliance information.
|
void |
setResourceType(java.lang.String resourceType)
The types of AWS resources for which you want compliance information; for
example,
AWS::EC2::Instance . |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeComplianceByResourceRequest |
withComplianceTypes(java.util.Collection<java.lang.String> complianceTypes)
Filters the results by compliance.
|
DescribeComplianceByResourceRequest |
withComplianceTypes(ComplianceType... complianceTypes)
Filters the results by compliance.
|
DescribeComplianceByResourceRequest |
withComplianceTypes(java.lang.String... complianceTypes)
Filters the results by compliance.
|
DescribeComplianceByResourceRequest |
withLimit(java.lang.Integer limit)
The maximum number of evaluation results returned on each page.
|
DescribeComplianceByResourceRequest |
withNextToken(java.lang.String nextToken)
The
nextToken string returned on a previous page that you
use to get the next page of results in a paginated response. |
DescribeComplianceByResourceRequest |
withResourceId(java.lang.String resourceId)
The ID of the AWS resource for which you want compliance information.
|
DescribeComplianceByResourceRequest |
withResourceType(java.lang.String resourceType)
The types of AWS resources for which you want compliance information; for
example,
AWS::EC2::Instance . |
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
private java.lang.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 specifying
AWS::::Account
.
private java.lang.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
.
private SdkInternalList<java.lang.String> complianceTypes
Filters the results by compliance.
The allowed values are COMPLIANT
, NON_COMPLIANT
, and INSUFFICIENT_DATA
.
private java.lang.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.
private java.lang.String nextToken
The nextToken
string returned on a previous page that you
use to get the next page of results in a paginated response.
public void setResourceType(java.lang.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 specifying
AWS::::Account
.
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 specifying AWS::::Account
.public java.lang.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 specifying
AWS::::Account
.
AWS::EC2::Instance
. For
this action, you can specify that the resource type is an AWS
account by specifying AWS::::Account
.public DescribeComplianceByResourceRequest withResourceType(java.lang.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 specifying
AWS::::Account
.
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 specifying AWS::::Account
.public void setResourceId(java.lang.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
.
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
.public java.lang.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
.
ResourceType
.public DescribeComplianceByResourceRequest withResourceId(java.lang.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
.
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
.public java.util.List<java.lang.String> getComplianceTypes()
Filters the results by compliance.
The allowed values are COMPLIANT
, NON_COMPLIANT
, and INSUFFICIENT_DATA
.
The allowed values are COMPLIANT
,
NON_COMPLIANT
, and INSUFFICIENT_DATA
.
ComplianceType
public void setComplianceTypes(java.util.Collection<java.lang.String> complianceTypes)
Filters the results by compliance.
The allowed values are COMPLIANT
, NON_COMPLIANT
, and INSUFFICIENT_DATA
.
complianceTypes
- Filters the results by compliance.
The allowed values are COMPLIANT
,
NON_COMPLIANT
, and INSUFFICIENT_DATA
.
ComplianceType
public DescribeComplianceByResourceRequest withComplianceTypes(java.lang.String... complianceTypes)
Filters the results by compliance.
The allowed values are COMPLIANT
, NON_COMPLIANT
, and INSUFFICIENT_DATA
.
NOTE: This method appends the values to the existing list (if
any). Use setComplianceTypes(java.util.Collection)
or
withComplianceTypes(java.util.Collection)
if you want to
override the existing values.
complianceTypes
- Filters the results by compliance.
The allowed values are COMPLIANT
,
NON_COMPLIANT
, and INSUFFICIENT_DATA
.
ComplianceType
public DescribeComplianceByResourceRequest withComplianceTypes(java.util.Collection<java.lang.String> complianceTypes)
Filters the results by compliance.
The allowed values are COMPLIANT
, NON_COMPLIANT
, and INSUFFICIENT_DATA
.
complianceTypes
- Filters the results by compliance.
The allowed values are COMPLIANT
,
NON_COMPLIANT
, and INSUFFICIENT_DATA
.
ComplianceType
public DescribeComplianceByResourceRequest withComplianceTypes(ComplianceType... complianceTypes)
Filters the results by compliance.
The allowed values are COMPLIANT
, NON_COMPLIANT
, and INSUFFICIENT_DATA
.
complianceTypes
- Filters the results by compliance.
The allowed values are COMPLIANT
,
NON_COMPLIANT
, and INSUFFICIENT_DATA
.
ComplianceType
public void setLimit(java.lang.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.
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.public java.lang.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.
public DescribeComplianceByResourceRequest withLimit(java.lang.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.
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.public void setNextToken(java.lang.String nextToken)
The nextToken
string returned on a previous page that you
use to get the next page of results in a paginated response.
nextToken
- The nextToken
string returned on a previous page that
you use to get the next page of results in a paginated response.public java.lang.String getNextToken()
The 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 DescribeComplianceByResourceRequest withNextToken(java.lang.String nextToken)
The nextToken
string returned on a previous page that you
use to get the next page of results in a paginated response.
nextToken
- The nextToken
string returned on a previous page that
you use to get the next page of results in a paginated response.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public DescribeComplianceByResourceRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()