Table of Contents

Interface IWithUniqueKeyPolicy

Namespace
Microsoft.Azure.Management.CosmosDB.Fluent.SqlContainer.Update
Assembly
Microsoft.Azure.Management.CosmosDB.Fluent.dll

The stage of a SQL container update allowing to set unique key policy.

public interface IWithUniqueKeyPolicy

Methods

WithUniqueKey(UniqueKey)

Specifies a unique key.

IUpdate WithUniqueKey(UniqueKey uniqueKey)

Parameters

uniqueKey UniqueKey

A unique key.

Returns

IUpdate

The next stage of the update.

WithUniqueKey(params string[])

Specifies a unique key appended to original list.

IUpdate WithUniqueKey(params string[] paths)

Parameters

paths string[]

The paths of the unique key.

Returns

IUpdate

The next stage of the update.

WithUniqueKeyPolicy(UniqueKeyPolicy)

Specifies the unique key policy.

IUpdate WithUniqueKeyPolicy(UniqueKeyPolicy uniqueKeyPolicy)

Parameters

uniqueKeyPolicy UniqueKeyPolicy

The whole object of the unique key policy.

Returns

IUpdate

The next stage of the update.

WithUniqueKeys(IList<UniqueKey>)

Appends the list of unique key.

IUpdate WithUniqueKeys(IList<UniqueKey> uniqueKeys)

Parameters

uniqueKeys IList<UniqueKey>

The list of unique key.

Returns

IUpdate

The next stage of the update.

WithoutUniqueKeyPolicy()

Removes the unique key policy.

IUpdate WithoutUniqueKeyPolicy()

Returns

IUpdate

The next stage of the update.