Package software.amazon.awssdk.profiles
Class ProfileFile.Aggregator
java.lang.Object
software.amazon.awssdk.profiles.ProfileFile.Aggregator
- All Implemented Interfaces:
Buildable
,SdkBuilder<ProfileFile.Aggregator,
ProfileFile>
- Enclosing class:
ProfileFile
public static final class ProfileFile.Aggregator
extends Object
implements SdkBuilder<ProfileFile.Aggregator,ProfileFile>
A mechanism for merging multiple
ProfileFile
s together into a single file. This will merge their profiles and
properties together.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddFile
(ProfileFile file) Add a file to be aggregated.build()
An immutable object that is created from the properties that have been set on the builder.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation
-
Constructor Details
-
Aggregator
public Aggregator()
-
-
Method Details
-
addFile
Add a file to be aggregated. In the event that there is a duplicate profile/property pair in the files, files added earliest to this aggregator will take precedence, dropping the duplicated properties in the later files. -
build
Description copied from interface:SdkBuilder
An immutable object that is created from the properties that have been set on the builder.- Specified by:
build
in interfaceBuildable
- Specified by:
build
in interfaceSdkBuilder<ProfileFile.Aggregator,
ProfileFile> - Returns:
- an instance of T
-