Class WebsiteBuilder<TResult, TBuilder>
Builder for the class CreateWebsite
Inheritance
System.Object
WebsiteBuilder<TResult, TBuilder>
Namespace: HuduAPI.Endpoints.Parameters.AbstractBases
Assembly: HuduAPI.dll
Syntax
public abstract class WebsiteBuilder<TResult, TBuilder>
where TResult : Website where TBuilder : WebsiteBuilder<TResult, TBuilder>
Type Parameters
| Name | Description |
|---|---|
| TResult | |
| TBuilder |
Fields
_companyId
Declaration
protected int _companyId
Field Value
| Type | Description |
|---|---|
| System.Int32 |
_disableDns
Declaration
protected bool _disableDns
Field Value
| Type | Description |
|---|---|
| System.Boolean |
_disableSsl
Declaration
protected bool _disableSsl
Field Value
| Type | Description |
|---|---|
| System.Boolean |
_disableWhois
Declaration
protected bool _disableWhois
Field Value
| Type | Description |
|---|---|
| System.Boolean |
_name
Declaration
protected string _name
Field Value
| Type | Description |
|---|---|
| System.String |
_notes
Declaration
protected string _notes
Field Value
| Type | Description |
|---|---|
| System.String |
_paused
Declaration
protected bool _paused
Field Value
| Type | Description |
|---|---|
| System.Boolean |
Methods
Build()
Builds a new instance of type TResult with all required
properties initialised.
Declaration
public abstract Website Build()
Returns
| Type | Description |
|---|---|
| Website |
WithCompanyId(Int32)
Set a value for companyId
Declaration
public TBuilder WithCompanyId(int companyId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | companyId | The company identifier. |
Returns
| Type | Description |
|---|---|
| TBuilder | A generic Builder Object for type |
WithDisableDns(Boolean)
Set a value for disableDns
Declaration
public TBuilder WithDisableDns(bool disableDns)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | disableDns | if set to |
Returns
| Type | Description |
|---|---|
| TBuilder | A generic Builder Object for type |
WithDisableSsl(Boolean)
Set a value for disableSsl
Declaration
public TBuilder WithDisableSsl(bool disableSsl)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | disableSsl | if set to |
Returns
| Type | Description |
|---|---|
| TBuilder | A generic Builder Object for type |
WithDisableWhois(Boolean)
Set a value for disableWhois
Declaration
public TBuilder WithDisableWhois(bool disableWhois)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | disableWhois | if set to |
Returns
| Type | Description |
|---|---|
| TBuilder | A generic Builder Object for type |
WithName(String)
Set a value for name
Declaration
public TBuilder WithName(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The name. |
Returns
| Type | Description |
|---|---|
| TBuilder | A generic Builder Object for type |
WithNotes(String)
Set a value for notes
Declaration
public TBuilder WithNotes(string notes)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | notes | The notes. |
Returns
| Type | Description |
|---|---|
| TBuilder | A generic Builder Object for type |
WithPaused(Boolean)
Set a value for paused
Declaration
public TBuilder WithPaused(bool paused)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | paused | if set to |
Returns
| Type | Description |
|---|---|
| TBuilder | A generic Builder Object for type |