@Beta(value=V4_16_0, warningText="Preview API - subject to change in non-backwards compatible way") public final class PartitionKeyBuilder extends Object
Constructor and Description |
---|
PartitionKeyBuilder()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
PartitionKeyBuilder |
add(boolean value)
Adds partition value of type boolean
|
PartitionKeyBuilder |
add(double value)
Adds partition value of type double
|
PartitionKeyBuilder |
add(String value)
Adds partition value of type string
|
PartitionKeyBuilder |
addNoneValue()
Adds a None Partition Key
|
PartitionKeyBuilder |
addNullValue()
Adds a null partition key value
|
PartitionKey |
build()
Builds a new instance of the type PartitionKey with the specified Partition Key values.
|
@Beta(value=V4_16_0, warningText="Preview API - subject to change in non-backwards compatible way") public PartitionKeyBuilder()
@Beta(value=V4_16_0, warningText="Preview API - subject to change in non-backwards compatible way") public PartitionKeyBuilder add(String value)
value
- The value of type string to be used as partition key@Beta(value=V4_16_0, warningText="Preview API - subject to change in non-backwards compatible way") public PartitionKeyBuilder add(double value)
value
- The value of type double to be used as partition key@Beta(value=V4_16_0, warningText="Preview API - subject to change in non-backwards compatible way") public PartitionKeyBuilder add(boolean value)
value
- The value of type boolean to be used as partition key@Beta(value=V4_16_0, warningText="Preview API - subject to change in non-backwards compatible way") public PartitionKeyBuilder addNullValue()
@Beta(value=V4_16_0, warningText="Preview API - subject to change in non-backwards compatible way") public PartitionKeyBuilder addNoneValue()
@Beta(value=V4_16_0, warningText="Preview API - subject to change in non-backwards compatible way") public PartitionKey build()
Copyright © 2021 Microsoft Corporation. All rights reserved.