Class EntityCopyOptionsBuilder

Default implementation of IEntityCopyOptionsBuilder.

Inheritance
object
EntityCopyOptionsBuilder
Namespace: StylelabsStylelabs.MSdkStylelabs.M.Sdk.ModelsContent
Assembly: Stylelabs.M.Sdk.dll
Syntax
RequestResponse

public class EntityCopyOptionsBuilder : IEntityCopyOptionsBuilder

Constructors

EntityCopyOptionsBuilder()

Initializes a new instance of the EntityCopyOptionsBuilder class.

Declaration
RequestResponse

public EntityCopyOptionsBuilder()

EntityCopyOptionsBuilder(IEntityCopyOptions)

Initializes a new instance of the EntityCopyOptionsBuilder class.

Declaration
RequestResponse

public EntityCopyOptionsBuilder(IEntityCopyOptions copyOptions)
Parameters
TypeNameDescription
IEntityCopyOptionscopyOptions

The IEntityCopyOptions.

Methods

Build()

Gets the resulting instance of IEntityCopyOptions.

Declaration
RequestResponse

public 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

public 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

public 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

public 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

public 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

public 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

public 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

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

The relations collection.

Returns
TypeDescription
IEntityCopyOptionsBuilder

The builder.

Implements

Do you have some feedback for us?

If you have suggestions for improving this article,