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 Import
Declaration
public ImportDeclaration(string type = null, Identifier _as = null, StringLiteral path = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
type | Type of AST node. |
Identifier | _as | _as. |
String |
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 |
---|---|
String |
Type
Type of AST node
Declaration
public string Type { get; set; }
Property Value
Type | Description |
---|---|
System. |
Type of AST node |
Methods
Equals(ImportDeclaration)
Returns true if ImportDeclaration instances are equal
Declaration
public bool Equals(ImportDeclaration input)
Parameters
Type | Name | Description |
---|---|---|
Import |
input | Instance of ImportDeclaration to be compared |
Returns
Type | Description |
---|---|
System. |
Boolean |
Equals(Object)
Returns true if objects are equal
Declaration
public override bool Equals(object input)
Parameters
Type | Name | Description |
---|---|---|
System. |
input | Object to be compared |
Returns
Type | Description |
---|---|
System. |
Boolean |
GetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System. |
Hash code |
ToJson()
Returns the JSON string presentation of the object
Declaration
public virtual string ToJson()
Returns
Type | Description |
---|---|
System. |
JSON string presentation of the object |
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System. |
String presentation of the object |