Table of Contents

Interface IWithUniqueKeyPolicy<ParentT>

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

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

public interface IWithUniqueKeyPolicy<ParentT>

Type Parameters

ParentT

The stage of the parent definition to return to after attaching this definition.

Methods

WithUniqueKey(UniqueKey)

Specifies a unique key appended to original list.

IWithAttach<ParentT> WithUniqueKey(UniqueKey uniqueKey)

Parameters

uniqueKey UniqueKey

A unique key.

Returns

IWithAttach<ParentT>

The next stage of the definition.

WithUniqueKey(params string[])

Specifies a unique key appended to original list.

IWithAttach<ParentT> WithUniqueKey(params string[] paths)

Parameters

paths string[]

The paths of the unique key.

Returns

IWithAttach<ParentT>

The next stage of the definition.

WithUniqueKeyPolicy(UniqueKeyPolicy)

Specifies the unique key policy.

IWithAttach<ParentT> WithUniqueKeyPolicy(UniqueKeyPolicy uniqueKeyPolicy)

Parameters

uniqueKeyPolicy UniqueKeyPolicy

The whole object of the unique key policy.

Returns

IWithAttach<ParentT>

The next stage of the definition.

WithUniqueKeys(IList<UniqueKey>)

Specifies the list of unique key.

IWithAttach<ParentT> WithUniqueKeys(IList<UniqueKey> uniqueKeys)

Parameters

uniqueKeys IList<UniqueKey>

The list of unique key.

Returns

IWithAttach<ParentT>

The next stage of the definition.