@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeResourceScanResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
DescribeResourceScanResult() |
Modifier and Type | Method and Description |
---|---|
DescribeResourceScanResult |
clone() |
boolean |
equals(Object obj) |
Date |
getEndTime()
The time that the resource scan was finished.
|
Double |
getPercentageCompleted()
The percentage of the resource scan that has been completed.
|
String |
getResourceScanId()
The Amazon Resource Name (ARN) of the resource scan.
|
Integer |
getResourcesRead()
The number of resources that were read.
|
Integer |
getResourcesScanned()
The number of resources that were listed.
|
List<String> |
getResourceTypes()
The list of resource types for the specified scan.
|
Date |
getStartTime()
The time that the resource scan was started.
|
String |
getStatus()
Status of the resource scan.
|
String |
getStatusReason()
The reason for the resource scan status, providing more information if a failure happened.
|
int |
hashCode() |
void |
setEndTime(Date endTime)
The time that the resource scan was finished.
|
void |
setPercentageCompleted(Double percentageCompleted)
The percentage of the resource scan that has been completed.
|
void |
setResourceScanId(String resourceScanId)
The Amazon Resource Name (ARN) of the resource scan.
|
void |
setResourcesRead(Integer resourcesRead)
The number of resources that were read.
|
void |
setResourcesScanned(Integer resourcesScanned)
The number of resources that were listed.
|
void |
setResourceTypes(Collection<String> resourceTypes)
The list of resource types for the specified scan.
|
void |
setStartTime(Date startTime)
The time that the resource scan was started.
|
void |
setStatus(String status)
Status of the resource scan.
|
void |
setStatusReason(String statusReason)
The reason for the resource scan status, providing more information if a failure happened.
|
String |
toString()
Returns a string representation of this object.
|
DescribeResourceScanResult |
withEndTime(Date endTime)
The time that the resource scan was finished.
|
DescribeResourceScanResult |
withPercentageCompleted(Double percentageCompleted)
The percentage of the resource scan that has been completed.
|
DescribeResourceScanResult |
withResourceScanId(String resourceScanId)
The Amazon Resource Name (ARN) of the resource scan.
|
DescribeResourceScanResult |
withResourcesRead(Integer resourcesRead)
The number of resources that were read.
|
DescribeResourceScanResult |
withResourcesScanned(Integer resourcesScanned)
The number of resources that were listed.
|
DescribeResourceScanResult |
withResourceTypes(Collection<String> resourceTypes)
The list of resource types for the specified scan.
|
DescribeResourceScanResult |
withResourceTypes(String... resourceTypes)
The list of resource types for the specified scan.
|
DescribeResourceScanResult |
withStartTime(Date startTime)
The time that the resource scan was started.
|
DescribeResourceScanResult |
withStatus(ResourceScanStatus status)
Status of the resource scan.
|
DescribeResourceScanResult |
withStatus(String status)
Status of the resource scan.
|
DescribeResourceScanResult |
withStatusReason(String statusReason)
The reason for the resource scan status, providing more information if a failure happened.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setResourceScanId(String resourceScanId)
The Amazon Resource Name (ARN) of the resource scan. The format is
arn:${Partition}:cloudformation:${Region}:${Account}:resourceScan/${Id}
. An example is
arn:aws:cloudformation:us-east-1:123456789012:resourceScan/f5b490f7-7ed4-428a-aa06-31ff25db0772
.
resourceScanId
- The Amazon Resource Name (ARN) of the resource scan. The format is
arn:${Partition}:cloudformation:${Region}:${Account}:resourceScan/${Id}
. An example is
arn:aws:cloudformation:us-east-1:123456789012:resourceScan/f5b490f7-7ed4-428a-aa06-31ff25db0772
.public String getResourceScanId()
The Amazon Resource Name (ARN) of the resource scan. The format is
arn:${Partition}:cloudformation:${Region}:${Account}:resourceScan/${Id}
. An example is
arn:aws:cloudformation:us-east-1:123456789012:resourceScan/f5b490f7-7ed4-428a-aa06-31ff25db0772
.
arn:${Partition}:cloudformation:${Region}:${Account}:resourceScan/${Id}
. An example is
arn:aws:cloudformation:us-east-1:123456789012:resourceScan/f5b490f7-7ed4-428a-aa06-31ff25db0772
.public DescribeResourceScanResult withResourceScanId(String resourceScanId)
The Amazon Resource Name (ARN) of the resource scan. The format is
arn:${Partition}:cloudformation:${Region}:${Account}:resourceScan/${Id}
. An example is
arn:aws:cloudformation:us-east-1:123456789012:resourceScan/f5b490f7-7ed4-428a-aa06-31ff25db0772
.
resourceScanId
- The Amazon Resource Name (ARN) of the resource scan. The format is
arn:${Partition}:cloudformation:${Region}:${Account}:resourceScan/${Id}
. An example is
arn:aws:cloudformation:us-east-1:123456789012:resourceScan/f5b490f7-7ed4-428a-aa06-31ff25db0772
.public void setStatus(String status)
Status of the resource scan.
The resource scan is still in progress.
The resource scan is complete.
The resource scan has expired.
The resource scan has failed.
status
- Status of the resource scan.
The resource scan is still in progress.
The resource scan is complete.
The resource scan has expired.
The resource scan has failed.
ResourceScanStatus
public String getStatus()
Status of the resource scan.
The resource scan is still in progress.
The resource scan is complete.
The resource scan has expired.
The resource scan has failed.
The resource scan is still in progress.
The resource scan is complete.
The resource scan has expired.
The resource scan has failed.
ResourceScanStatus
public DescribeResourceScanResult withStatus(String status)
Status of the resource scan.
The resource scan is still in progress.
The resource scan is complete.
The resource scan has expired.
The resource scan has failed.
status
- Status of the resource scan.
The resource scan is still in progress.
The resource scan is complete.
The resource scan has expired.
The resource scan has failed.
ResourceScanStatus
public DescribeResourceScanResult withStatus(ResourceScanStatus status)
Status of the resource scan.
The resource scan is still in progress.
The resource scan is complete.
The resource scan has expired.
The resource scan has failed.
status
- Status of the resource scan.
The resource scan is still in progress.
The resource scan is complete.
The resource scan has expired.
The resource scan has failed.
ResourceScanStatus
public void setStatusReason(String statusReason)
The reason for the resource scan status, providing more information if a failure happened.
statusReason
- The reason for the resource scan status, providing more information if a failure happened.public String getStatusReason()
The reason for the resource scan status, providing more information if a failure happened.
public DescribeResourceScanResult withStatusReason(String statusReason)
The reason for the resource scan status, providing more information if a failure happened.
statusReason
- The reason for the resource scan status, providing more information if a failure happened.public void setStartTime(Date startTime)
The time that the resource scan was started.
startTime
- The time that the resource scan was started.public Date getStartTime()
The time that the resource scan was started.
public DescribeResourceScanResult withStartTime(Date startTime)
The time that the resource scan was started.
startTime
- The time that the resource scan was started.public void setEndTime(Date endTime)
The time that the resource scan was finished.
endTime
- The time that the resource scan was finished.public Date getEndTime()
The time that the resource scan was finished.
public DescribeResourceScanResult withEndTime(Date endTime)
The time that the resource scan was finished.
endTime
- The time that the resource scan was finished.public void setPercentageCompleted(Double percentageCompleted)
The percentage of the resource scan that has been completed.
percentageCompleted
- The percentage of the resource scan that has been completed.public Double getPercentageCompleted()
The percentage of the resource scan that has been completed.
public DescribeResourceScanResult withPercentageCompleted(Double percentageCompleted)
The percentage of the resource scan that has been completed.
percentageCompleted
- The percentage of the resource scan that has been completed.public List<String> getResourceTypes()
The list of resource types for the specified scan. Resource types are only available for scans with a
Status
set to COMPLETE
or FAILED
.
Status
set to COMPLETE
or FAILED
.public void setResourceTypes(Collection<String> resourceTypes)
The list of resource types for the specified scan. Resource types are only available for scans with a
Status
set to COMPLETE
or FAILED
.
resourceTypes
- The list of resource types for the specified scan. Resource types are only available for scans with a
Status
set to COMPLETE
or FAILED
.public DescribeResourceScanResult withResourceTypes(String... resourceTypes)
The list of resource types for the specified scan. Resource types are only available for scans with a
Status
set to COMPLETE
or FAILED
.
NOTE: This method appends the values to the existing list (if any). Use
setResourceTypes(java.util.Collection)
or withResourceTypes(java.util.Collection)
if you want
to override the existing values.
resourceTypes
- The list of resource types for the specified scan. Resource types are only available for scans with a
Status
set to COMPLETE
or FAILED
.public DescribeResourceScanResult withResourceTypes(Collection<String> resourceTypes)
The list of resource types for the specified scan. Resource types are only available for scans with a
Status
set to COMPLETE
or FAILED
.
resourceTypes
- The list of resource types for the specified scan. Resource types are only available for scans with a
Status
set to COMPLETE
or FAILED
.public void setResourcesScanned(Integer resourcesScanned)
The number of resources that were listed. This is only available for scans with a Status
set to
COMPLETE
, EXPIRED
, or FAILED
.
resourcesScanned
- The number of resources that were listed. This is only available for scans with a Status
set
to COMPLETE
, EXPIRED
, or FAILED
.public Integer getResourcesScanned()
The number of resources that were listed. This is only available for scans with a Status
set to
COMPLETE
, EXPIRED
, or FAILED
.
Status
set
to COMPLETE
, EXPIRED
, or FAILED
.public DescribeResourceScanResult withResourcesScanned(Integer resourcesScanned)
The number of resources that were listed. This is only available for scans with a Status
set to
COMPLETE
, EXPIRED
, or FAILED
.
resourcesScanned
- The number of resources that were listed. This is only available for scans with a Status
set
to COMPLETE
, EXPIRED
, or FAILED
.public void setResourcesRead(Integer resourcesRead)
The number of resources that were read. This is only available for scans with a Status
set to
COMPLETE
, EXPIRED
, or FAILED
.
This field may be 0 if the resource scan failed with a ResourceScanLimitExceededException
.
resourcesRead
- The number of resources that were read. This is only available for scans with a Status
set to
COMPLETE
, EXPIRED
, or FAILED
.
This field may be 0 if the resource scan failed with a ResourceScanLimitExceededException
.
public Integer getResourcesRead()
The number of resources that were read. This is only available for scans with a Status
set to
COMPLETE
, EXPIRED
, or FAILED
.
This field may be 0 if the resource scan failed with a ResourceScanLimitExceededException
.
Status
set
to COMPLETE
, EXPIRED
, or FAILED
.
This field may be 0 if the resource scan failed with a ResourceScanLimitExceededException
.
public DescribeResourceScanResult withResourcesRead(Integer resourcesRead)
The number of resources that were read. This is only available for scans with a Status
set to
COMPLETE
, EXPIRED
, or FAILED
.
This field may be 0 if the resource scan failed with a ResourceScanLimitExceededException
.
resourcesRead
- The number of resources that were read. This is only available for scans with a Status
set to
COMPLETE
, EXPIRED
, or FAILED
.
This field may be 0 if the resource scan failed with a ResourceScanLimitExceededException
.
public String toString()
toString
in class Object
Object.toString()
public DescribeResourceScanResult clone()