Class Partitions.Builder
- java.lang.Object
-
- software.amazon.smithy.rulesengine.language.RulesComponentBuilder<Partitions.Builder,Partitions>
-
- software.amazon.smithy.rulesengine.aws.language.functions.partition.Partitions.Builder
-
- All Implemented Interfaces:
FromSourceLocation
,SmithyBuilder<Partitions>
- Enclosing class:
- Partitions
public static class Partitions.Builder extends RulesComponentBuilder<Partitions.Builder,Partitions>
A builder used to create aPartitions
class.
-
-
Constructor Summary
Constructors Constructor Description Builder(FromSourceLocation sourceLocation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Partitions.Builder
addPartition(Partition p)
Partitions
build()
Creates an immutable object that is created from the properties that have been set on the builder.Partitions.Builder
partitions(java.util.List<Partition> partitions)
Partitions.Builder
version(java.lang.String version)
-
Methods inherited from class software.amazon.smithy.rulesengine.language.RulesComponentBuilder
getSourceLocation, javaLocation, sourceLocation
-
-
-
-
Constructor Detail
-
Builder
public Builder(FromSourceLocation sourceLocation)
-
-
Method Detail
-
version
public Partitions.Builder version(java.lang.String version)
-
partitions
public Partitions.Builder partitions(java.util.List<Partition> partitions)
-
addPartition
public Partitions.Builder addPartition(Partition p)
-
build
public Partitions build()
Description copied from interface:SmithyBuilder
Creates an immutable object that is created from the properties that have been set on the builder.- Returns:
- an instance of T
-
-