@Generated(value="software.amazon.awssdk:codegen") public class GetDiscoveredResourceCountsResponse extends ConfigResponse implements ToCopyableBuilder<GetDiscoveredResourceCountsResponse.Builder,GetDiscoveredResourceCountsResponse>
Modifier and Type | Class and Description |
---|---|
static interface |
GetDiscoveredResourceCountsResponse.Builder |
Modifier and Type | Method and Description |
---|---|
static GetDiscoveredResourceCountsResponse.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkResponse . |
int |
hashCode() |
String |
nextToken()
The string that you use in a subsequent request to get the next page of results in a paginated response.
|
List<ResourceCount> |
resourceCounts()
The list of
ResourceCount objects. |
static Class<? extends GetDiscoveredResourceCountsResponse.Builder> |
serializableBuilderClass() |
GetDiscoveredResourceCountsResponse.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
Long |
totalDiscoveredResources()
The total number of resources that AWS Config is recording in the region for your account.
|
copy
public Long totalDiscoveredResources()
The total number of resources that AWS Config is recording in the region for your account. If you specify resource types in the request, AWS Config returns only the total number of resources for those resource types.
Example
AWS Config is recording three resource types in the US East (Ohio) Region for your account: 25 EC2 instances, 20 IAM users, and 15 S3 buckets, for a total of 60 resources.
You make a call to the GetDiscoveredResourceCounts
action and specify the resource type,
"AWS::EC2::Instances"
in the request.
AWS Config returns 25 for totalDiscoveredResources
.
Example
AWS Config is recording three resource types in the US East (Ohio) Region for your account: 25 EC2 instances, 20 IAM users, and 15 S3 buckets, for a total of 60 resources.
You make a call to the GetDiscoveredResourceCounts
action and specify the resource type,
"AWS::EC2::Instances"
in the request.
AWS Config returns 25 for totalDiscoveredResources
.
public List<ResourceCount> resourceCounts()
The list of ResourceCount
objects. Each object is listed in descending order by the number of
resources.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
ResourceCount
objects. Each object is listed in descending order by the number
of resources.public String nextToken()
The string that you use in a subsequent request to get the next page of results in a paginated response.
public GetDiscoveredResourceCountsResponse.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<GetDiscoveredResourceCountsResponse.Builder,GetDiscoveredResourceCountsResponse>
toBuilder
in class AwsResponse
public static GetDiscoveredResourceCountsResponse.Builder builder()
public static Class<? extends GetDiscoveredResourceCountsResponse.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkResponse
SdkResponse
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkResponse.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkResponse
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.