Interface ImageUsageReport.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ImageUsageReport.Builder,
,ImageUsageReport> SdkBuilder<ImageUsageReport.Builder,
,ImageUsageReport> SdkPojo
- Enclosing class:
ImageUsageReport
-
Method Summary
Modifier and TypeMethodDescriptionaccountIds
(String... accountIds) The IDs of the Amazon Web Services accounts that were specified when the report was created.accountIds
(Collection<String> accountIds) The IDs of the Amazon Web Services accounts that were specified when the report was created.creationTime
(Instant creationTime) The date and time when the report was created.expirationTime
(Instant expirationTime) The date and time when Amazon EC2 will delete the report (30 days after the report was created).The ID of the image that was specified when the report was created.The ID of the report.resourceTypes
(Collection<ImageUsageResourceType> resourceTypes) The resource types that were specified when the report was created.resourceTypes
(Consumer<ImageUsageResourceType.Builder>... resourceTypes) The resource types that were specified when the report was created.resourceTypes
(ImageUsageResourceType... resourceTypes) The resource types that were specified when the report was created.The current state of the report.stateReason
(String stateReason) Provides additional details when the report is in anerror
state.tags
(Collection<Tag> tags) Any tags assigned to the report.tags
(Consumer<Tag.Builder>... tags) Any tags assigned to the report.Any tags assigned to the report.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
imageId
The ID of the image that was specified when the report was created.
- Parameters:
imageId
- The ID of the image that was specified when the report was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reportId
The ID of the report.
- Parameters:
reportId
- The ID of the report.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceTypes
The resource types that were specified when the report was created.
- Parameters:
resourceTypes
- The resource types that were specified when the report was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceTypes
The resource types that were specified when the report was created.
- Parameters:
resourceTypes
- The resource types that were specified when the report was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceTypes
The resource types that were specified when the report was created.
This is a convenience method that creates an instance of theImageUsageResourceType.Builder
avoiding the need to create one manually viaImageUsageResourceType.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toresourceTypes(List<ImageUsageResourceType>)
.- Parameters:
resourceTypes
- a consumer that will call methods onImageUsageResourceType.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
accountIds
The IDs of the Amazon Web Services accounts that were specified when the report was created.
- Parameters:
accountIds
- The IDs of the Amazon Web Services accounts that were specified when the report was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accountIds
The IDs of the Amazon Web Services accounts that were specified when the report was created.
- Parameters:
accountIds
- The IDs of the Amazon Web Services accounts that were specified when the report was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
The current state of the report. Possible values:
-
available
- The report is available to view. -
pending
- The report is being created and not available to view. -
error
- The report could not be created.
- Parameters:
state
- The current state of the report. Possible values:-
available
- The report is available to view. -
pending
- The report is being created and not available to view. -
error
- The report could not be created.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
stateReason
Provides additional details when the report is in an
error
state.- Parameters:
stateReason
- Provides additional details when the report is in anerror
state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
creationTime
The date and time when the report was created.
- Parameters:
creationTime
- The date and time when the report was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
expirationTime
The date and time when Amazon EC2 will delete the report (30 days after the report was created).
- Parameters:
expirationTime
- The date and time when Amazon EC2 will delete the report (30 days after the report was created).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Any tags assigned to the report.
- Parameters:
tags
- Any tags assigned to the report.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Any tags assigned to the report.
- Parameters:
tags
- Any tags assigned to the report.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Any tags assigned to the report.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-