Interface ImageUsageResourceType.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ImageUsageResourceType.Builder,,ImageUsageResourceType> SdkBuilder<ImageUsageResourceType.Builder,,ImageUsageResourceType> SdkPojo
- Enclosing class:
- ImageUsageResourceType
@Mutable
@NotThreadSafe
public static interface ImageUsageResourceType.Builder
extends SdkPojo, CopyableBuilder<ImageUsageResourceType.Builder,ImageUsageResourceType>
-
Method Summary
Modifier and TypeMethodDescriptionresourceType(String resourceType) The resource type.resourceTypeOptions(Collection<ImageUsageResourceTypeOption> resourceTypeOptions) The options that affect the scope of the report.resourceTypeOptions(Consumer<ImageUsageResourceTypeOption.Builder>... resourceTypeOptions) The options that affect the scope of the report.resourceTypeOptions(ImageUsageResourceTypeOption... resourceTypeOptions) The options that affect the scope of the report.Methods 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, sdkFieldNameToField, sdkFields
-
Method Details
-
resourceType
The resource type.
Valid values:
ec2:Instance|ec2:LaunchTemplate- Parameters:
resourceType- The resource type.Valid values:
ec2:Instance|ec2:LaunchTemplate- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceTypeOptions
ImageUsageResourceType.Builder resourceTypeOptions(Collection<ImageUsageResourceTypeOption> resourceTypeOptions) The options that affect the scope of the report. Valid only when
ResourceTypeisec2:LaunchTemplate.- Parameters:
resourceTypeOptions- The options that affect the scope of the report. Valid only whenResourceTypeisec2:LaunchTemplate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceTypeOptions
ImageUsageResourceType.Builder resourceTypeOptions(ImageUsageResourceTypeOption... resourceTypeOptions) The options that affect the scope of the report. Valid only when
ResourceTypeisec2:LaunchTemplate.- Parameters:
resourceTypeOptions- The options that affect the scope of the report. Valid only whenResourceTypeisec2:LaunchTemplate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceTypeOptions
ImageUsageResourceType.Builder resourceTypeOptions(Consumer<ImageUsageResourceTypeOption.Builder>... resourceTypeOptions) The options that affect the scope of the report. Valid only when
This is a convenience method that creates an instance of theResourceTypeisec2:LaunchTemplate.ImageUsageResourceTypeOption.Builderavoiding the need to create one manually viaImageUsageResourceTypeOption.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toresourceTypeOptions(List<ImageUsageResourceTypeOption>).- Parameters:
resourceTypeOptions- a consumer that will call methods onImageUsageResourceTypeOption.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-