Interface GetDiscoveredResourceCountsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,ConfigResponse.Builder,CopyableBuilder<GetDiscoveredResourceCountsResponse.Builder,,GetDiscoveredResourceCountsResponse> SdkBuilder<GetDiscoveredResourceCountsResponse.Builder,,GetDiscoveredResourceCountsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetDiscoveredResourceCountsResponse
-
Method Summary
Modifier and TypeMethodDescriptionThe string that you use in a subsequent request to get the next page of results in a paginated response.resourceCounts(Collection<ResourceCount> resourceCounts) The list ofResourceCountobjects.resourceCounts(Consumer<ResourceCount.Builder>... resourceCounts) The list ofResourceCountobjects.resourceCounts(ResourceCount... resourceCounts) The list ofResourceCountobjects.totalDiscoveredResources(Long totalDiscoveredResources) The total number of resources that Config is recording in the region for your account.Methods inherited from interface software.amazon.awssdk.services.config.model.ConfigResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
totalDiscoveredResources
The total number of resources that Config is recording in the region for your account. If you specify resource types in the request, Config returns only the total number of resources for those resource types.
Example
-
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
GetDiscoveredResourceCountsaction and specify the resource type,"AWS::EC2::Instances", in the request. -
Config returns 25 for
totalDiscoveredResources.
- Parameters:
totalDiscoveredResources- The total number of resources that Config is recording in the region for your account. If you specify resource types in the request, Config returns only the total number of resources for those resource types.Example
-
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
GetDiscoveredResourceCountsaction and specify the resource type,"AWS::EC2::Instances", in the request. -
Config returns 25 for
totalDiscoveredResources.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
resourceCounts
GetDiscoveredResourceCountsResponse.Builder resourceCounts(Collection<ResourceCount> resourceCounts) The list of
ResourceCountobjects. Each object is listed in descending order by the number of resources.- Parameters:
resourceCounts- The list ofResourceCountobjects. Each object is listed in descending order by the number of resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceCounts
The list of
ResourceCountobjects. Each object is listed in descending order by the number of resources.- Parameters:
resourceCounts- The list ofResourceCountobjects. Each object is listed in descending order by the number of resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceCounts
GetDiscoveredResourceCountsResponse.Builder resourceCounts(Consumer<ResourceCount.Builder>... resourceCounts) The list of
This is a convenience method that creates an instance of theResourceCountobjects. Each object is listed in descending order by the number of resources.ResourceCount.Builderavoiding the need to create one manually viaResourceCount.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toresourceCounts(List<ResourceCount>).- Parameters:
resourceCounts- a consumer that will call methods onResourceCount.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
The string that you use in a subsequent request to get the next page of results in a paginated response.
- Parameters:
nextToken- The string that you use in a subsequent request 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.
-