Interface IEntityCopyOptionsBuilder

Version: 3.2

A builder for instances of IEntityCopyOptions.

Namespace: StylelabsStylelabs.MSdkStylelabs.M.Sdk.ModelsContent
Assembly: Stylelabs.M.Sdk.dll
Syntax
RequestResponse
public interface IEntityCopyOptionsBuilder

Methods

Build()

Gets the resulting instance of IEntityCopyOptions.

Declaration
RequestResponse
IEntityCopyOptions Build()
Returns
TypeDescription
IEntityCopyOptions

The builder.

WithCopyProfile(long)

Indicates that the entity should be copied using the copy profile with the specified id.

Declaration
RequestResponse
IEntityCopyOptionsBuilder WithCopyProfile(long id)
Parameters
TypeNameDescription
longid

The id of the copy profile.

Returns
TypeDescription
IEntityCopyOptionsBuilder

The builder.

WithCopyProfile(string)

Indicates that the entity should be copied using the copy profile with the specified identifier.

Declaration
RequestResponse
IEntityCopyOptionsBuilder WithCopyProfile(string identifier)
Parameters
TypeNameDescription
stringidentifier

The identifier of the copy profile.

Returns
TypeDescription
IEntityCopyOptionsBuilder

The builder.

WithDestinationEntityId(long)

Indicates that the entity should be copied to the entity with the specified id.

Declaration
RequestResponse
IEntityCopyOptionsBuilder WithDestinationEntityId(long id)
Parameters
TypeNameDescription
longid

The destination entity id.

Returns
TypeDescription
IEntityCopyOptionsBuilder

The builder.

WithProperties(IEnumerable<IPropertyCopyOption>)

Indicates that the entity should be copied with the specified properties.

Declaration
RequestResponse
IEntityCopyOptionsBuilder WithProperties(IEnumerable<IPropertyCopyOption> properties)
Parameters
TypeNameDescription
IEnumerable<>IPropertyCopyOptionproperties

The properties collection.

Returns
TypeDescription
IEntityCopyOptionsBuilder

The builder.

WithProperty(string, PropertyCopyMethod, string)

Indicates that the entity should be copied with the specified property.

Declaration
RequestResponse
IEntityCopyOptionsBuilder WithProperty(string property, PropertyCopyMethod method, string newValue = null)
Parameters
TypeNameDescription
stringproperty

The name of the property.

PropertyCopyMethodmethod

The copy method.

stringnewValue

The property new value.

Returns
TypeDescription
IEntityCopyOptionsBuilder

The builder.

WithRelation(string, RelationCopyMethod, IEntityCopyOptions)

Indicates that the entity should be copied with the specified relation.

Declaration
RequestResponse
IEntityCopyOptionsBuilder WithRelation(string relation, RelationCopyMethod method, IEntityCopyOptions relatedOptions = null)
Parameters
TypeNameDescription
stringrelation

The name of the relation.

RelationCopyMethodmethod

The copy method.

IEntityCopyOptionsrelatedOptions

The related options.

Returns
TypeDescription
IEntityCopyOptionsBuilder

The builder.

WithRelations(IEnumerable<IRelationCopyOption>)

Indicates that the entity should be copied with the specified relations.

Declaration
RequestResponse
IEntityCopyOptionsBuilder WithRelations(IEnumerable<IRelationCopyOption> relations)
Parameters
TypeNameDescription
IEnumerable<>IRelationCopyOptionrelations

The relations collection.

Returns
TypeDescription
IEntityCopyOptionsBuilder

The builder.

Do you have some feedback for us?

If you have suggestions for improving this article,