Interface ImageUsageReport.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ImageUsageReport.Builder,ImageUsageReport>,SdkBuilder<ImageUsageReport.Builder,ImageUsageReport>,SdkPojo
- Enclosing class:
- ImageUsageReport
@Mutable @NotThreadSafe public static interface ImageUsageReport.Builder extends SdkPojo, CopyableBuilder<ImageUsageReport.Builder,ImageUsageReport>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ImageUsageReport.BuilderaccountIds(String... accountIds)The IDs of the Amazon Web Services accounts that were specified when the report was created.ImageUsageReport.BuilderaccountIds(Collection<String> accountIds)The IDs of the Amazon Web Services accounts that were specified when the report was created.ImageUsageReport.BuildercreationTime(Instant creationTime)The date and time when the report was created.ImageUsageReport.BuilderexpirationTime(Instant expirationTime)The date and time when Amazon EC2 will delete the report (30 days after the report was created).ImageUsageReport.BuilderimageId(String imageId)The ID of the image that was specified when the report was created.ImageUsageReport.BuilderreportId(String reportId)The ID of the report.ImageUsageReport.BuilderresourceTypes(Collection<ImageUsageResourceType> resourceTypes)The resource types that were specified when the report was created.ImageUsageReport.BuilderresourceTypes(Consumer<ImageUsageResourceType.Builder>... resourceTypes)The resource types that were specified when the report was created.ImageUsageReport.BuilderresourceTypes(ImageUsageResourceType... resourceTypes)The resource types that were specified when the report was created.ImageUsageReport.Builderstate(String state)The current state of the report.ImageUsageReport.BuilderstateReason(String stateReason)Provides additional details when the report is in anerrorstate.ImageUsageReport.Buildertags(Collection<Tag> tags)Any tags assigned to the report.ImageUsageReport.Buildertags(Consumer<Tag.Builder>... tags)Any tags assigned to the report.ImageUsageReport.Buildertags(Tag... tags)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 Detail
-
imageId
ImageUsageReport.Builder imageId(String 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
ImageUsageReport.Builder reportId(String 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
ImageUsageReport.Builder resourceTypes(Collection<ImageUsageResourceType> 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
ImageUsageReport.Builder resourceTypes(ImageUsageResourceType... 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
ImageUsageReport.Builder resourceTypes(Consumer<ImageUsageResourceType.Builder>... resourceTypes)
The resource types that were specified when the report was created.
This is a convenience method that creates an instance of theImageUsageResourceType.Builderavoiding the need to create one manually viaImageUsageResourceType.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#resourceTypes(List.) - 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:
#resourceTypes(java.util.Collection)
-
accountIds
ImageUsageReport.Builder accountIds(Collection<String> 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
ImageUsageReport.Builder accountIds(String... 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
ImageUsageReport.Builder state(String 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
ImageUsageReport.Builder stateReason(String stateReason)
Provides additional details when the report is in an
errorstate.- Parameters:
stateReason- Provides additional details when the report is in anerrorstate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
creationTime
ImageUsageReport.Builder creationTime(Instant 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
ImageUsageReport.Builder expirationTime(Instant 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
ImageUsageReport.Builder tags(Collection<Tag> 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
ImageUsageReport.Builder tags(Tag... 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
ImageUsageReport.Builder tags(Consumer<Tag.Builder>... tags)
Any tags assigned to the report.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - 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:
#tags(java.util.Collection)
-
-