Class AssetPasswordBuilder<TResult, TBuilder>
Inheritance
System.Object
AssetPasswordBuilder<TResult, TBuilder>
Assembly: HuduAPI.dll
Syntax
public abstract class AssetPasswordBuilder<TResult, TBuilder>
where TResult : AssetPassword where TBuilder : AssetPasswordBuilder<TResult, TBuilder>
Type Parameters
| Name |
Description |
| TResult |
|
| TBuilder |
|
Fields
_companyId
Declaration
Field Value
| Type |
Description |
| System.Int32 |
|
_description
Declaration
protected string _description
Field Value
| Type |
Description |
| System.String |
|
_inPortal
Declaration
Field Value
| Type |
Description |
| System.Boolean |
|
_name
Declaration
Field Value
| Type |
Description |
| System.String |
|
_otpSecret
Declaration
protected string _otpSecret
Field Value
| Type |
Description |
| System.String |
|
_password
Declaration
protected string _password
Field Value
| Type |
Description |
| System.String |
|
_passwordableId
Declaration
protected int? _passwordableId
Field Value
| Type |
Description |
| System.Nullable<System.Int32> |
|
_passwordableType
Declaration
protected string _passwordableType
Field Value
| Type |
Description |
| System.String |
|
_passwordFolderId
Declaration
protected int? _passwordFolderId
Field Value
| Type |
Description |
| System.Nullable<System.Int32> |
|
_passwordType
Declaration
protected string _passwordType
Field Value
| Type |
Description |
| System.String |
|
_url
Declaration
Field Value
| Type |
Description |
| System.String |
|
_username
Declaration
protected string _username
Field Value
| Type |
Description |
| System.String |
|
Methods
Build()
Builds a new instance of TResult.
Declaration
public abstract TResult Build()
Returns
| Type |
Description |
| TResult |
A new instance of TResult.
|
WithDescription(String)
Set a value for description
Declaration
public TBuilder WithDescription(string description)
Parameters
| Type |
Name |
Description |
| System.String |
description |
The description.
|
Returns
| Type |
Description |
| TBuilder |
A generic Builder Object for type TBuilder
|
WithInPortal(Boolean)
Declaration
public TBuilder WithInPortal(bool inPortal)
Parameters
| Type |
Name |
Description |
| System.Boolean |
inPortal |
if set to true [in portal].
|
Returns
| Type |
Description |
| TBuilder |
A generic Builder Object for type TBuilder
|
WithOtpSecret(String)
Set a value for otpSecret
Declaration
public TBuilder WithOtpSecret(string otpSecret)
Parameters
| Type |
Name |
Description |
| System.String |
otpSecret |
The otp secret.
|
Returns
| Type |
Description |
| TBuilder |
A generic Builder Object for type TBuilder
|
WithPasswordableId(Nullable<Int32>)
Set a value for passwordableId
Declaration
public TBuilder WithPasswordableId(int? passwordableId)
Parameters
| Type |
Name |
Description |
| System.Nullable<System.Int32> |
passwordableId |
The passwordable identifier.
|
Returns
| Type |
Description |
| TBuilder |
A generic Builder Object for type TBuilder
|
WithPasswordableType(String)
Set a list of password types, separated with new line characters
Declaration
public TBuilder WithPasswordableType(string passwordableType)
Parameters
| Type |
Name |
Description |
| System.String |
passwordableType |
Type of the passwordable.
|
Returns
| Type |
Description |
| TBuilder |
A generic Builder Object for type TBuilder
|
WithPasswordFolderId(Nullable<Int32>)
Set a value for passwordFolderId
Declaration
public TBuilder WithPasswordFolderId(int? passwordFolderId)
Parameters
| Type |
Name |
Description |
| System.Nullable<System.Int32> |
passwordFolderId |
The password folder identifier.
|
Returns
| Type |
Description |
| TBuilder |
A generic Builder Object for type TBuilder
|
WithPasswordType(String)
Set a value for passwordType
Declaration
public TBuilder WithPasswordType(string passwordType)
Parameters
| Type |
Name |
Description |
| System.String |
passwordType |
Type of the password.
|
Returns
| Type |
Description |
| TBuilder |
A generic Builder Object for type TBuilder
|
WithUrl(String)
Declaration
public TBuilder WithUrl(string url)
Parameters
| Type |
Name |
Description |
| System.String |
url |
The URL.
|
Returns
| Type |
Description |
| TBuilder |
A generic Builder Object for type TBuilder
|
WithUsername(String)
Declaration
public TBuilder WithUsername(string username)
Parameters
| Type |
Name |
Description |
| System.String |
username |
The username.
|
Returns
| Type |
Description |
| TBuilder |
A generic Builder Object for type TBuilder
|