Class Partition.Builder
- java.lang.Object
-
- software.amazon.smithy.rulesengine.language.RulesComponentBuilder<Partition.Builder,Partition>
-
- software.amazon.smithy.rulesengine.aws.language.functions.partition.Partition.Builder
-
- All Implemented Interfaces:
FromSourceLocation
,SmithyBuilder<Partition>
- Enclosing class:
- Partition
public static class Partition.Builder extends RulesComponentBuilder<Partition.Builder,Partition>
A builder used to create aPartition
class.
-
-
Constructor Summary
Constructors Constructor Description Builder(FromSourceLocation sourceLocation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Partition
build()
Creates an immutable object that is created from the properties that have been set on the builder.Partition.Builder
id(java.lang.String id)
Partition.Builder
outputs(PartitionOutputs outputs)
Partition.Builder
putRegion(java.lang.String name, RegionOverride regionOverride)
Partition.Builder
regionRegex(java.lang.String regionRegex)
Partition.Builder
regions(java.util.Map<java.lang.String,RegionOverride> regions)
-
Methods inherited from class software.amazon.smithy.rulesengine.language.RulesComponentBuilder
getSourceLocation, javaLocation, sourceLocation
-
-
-
-
Constructor Detail
-
Builder
public Builder(FromSourceLocation sourceLocation)
-
-
Method Detail
-
id
public Partition.Builder id(java.lang.String id)
-
regionRegex
public Partition.Builder regionRegex(java.lang.String regionRegex)
-
regions
public Partition.Builder regions(java.util.Map<java.lang.String,RegionOverride> regions)
-
putRegion
public Partition.Builder putRegion(java.lang.String name, RegionOverride regionOverride)
-
outputs
public Partition.Builder outputs(PartitionOutputs outputs)
-
build
public Partition 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
-
-