Class ImportDeclaration
Declares a package import
Inheritance
System.Object
ImportDeclaration
Namespace: InfluxDB.Client.Api.Domain
Assembly: InfluxDB.Client.dll
Syntax
public class ImportDeclaration : IEquatable<ImportDeclaration>
Constructors
ImportDeclaration(String, Identifier, StringLiteral)
Initializes a new instance of the ImportDeclaration class.
Declaration
public ImportDeclaration(string type = null, Identifier _as = null, StringLiteral path = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | type | Type of AST node. |
Identifier | _as | _as. |
StringLiteral | path | path. |
Properties
As
Gets or Sets As
Declaration
public Identifier As { get; set; }
Property Value
Type | Description |
---|---|
Identifier |
Path
Gets or Sets Path
Declaration
public StringLiteral Path { get; set; }
Property Value
Type | Description |
---|---|
StringLiteral |
Type
Type of AST node
Declaration
public string Type { get; set; }
Property Value
Type | Description |
---|---|
System.String | Type of AST node |
Methods
Equals(ImportDeclaration)
Returns true if ImportDeclaration instances are equal
Declaration
public bool Equals(ImportDeclaration input)
Parameters
Type | Name | Description |
---|---|---|
ImportDeclaration | input | Instance of ImportDeclaration to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
Equals(Object)
Returns true if objects are equal
Declaration
public override bool Equals(object input)
Parameters
Type | Name | Description |
---|---|---|
System.Object | input | Object to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
GetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Hash code |
ToJson()
Returns the JSON string presentation of the object
Declaration
public virtual string ToJson()
Returns
Type | Description |
---|---|
System.String | JSON string presentation of the object |
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | String presentation of the object |