Class RetentionPolicyManifest
RetentionPolicyManifest
Inheritance
Namespace: InfluxDB.Client.Api.Domain
Assembly: InfluxDB.Client.dll
Syntax
public class RetentionPolicyManifest : IEquatable<RetentionPolicyManifest>
Constructors
RetentionPolicyManifest()
Initializes a new instance of the RetentionPolicyManifest class.
Declaration
protected RetentionPolicyManifest()
RetentionPolicyManifest(String, Nullable<Int32>, Nullable<Int64>, Nullable<Int64>, List<ShardGroupManifest>, List<SubscriptionManifest>)
Initializes a new instance of the RetentionPolicyManifest class.
Declaration
public RetentionPolicyManifest(string name = null, int? replicaN = null, long? duration = null, long? shardGroupDuration = null, List<ShardGroupManifest> shardGroups = null, List<SubscriptionManifest> subscriptions = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | name (required). |
System.Nullable<System.Int32> | replicaN | replicaN (required). |
System.Nullable<System.Int64> | duration | duration (required). |
System.Nullable<System.Int64> | shardGroupDuration | shardGroupDuration (required). |
List<ShardGroupManifest> | shardGroups | shardGroups (required). |
List<SubscriptionManifest> | subscriptions | subscriptions (required). |
Properties
Duration
Gets or Sets Duration
Declaration
public long? Duration { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> |
Name
Gets or Sets Name
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ReplicaN
Gets or Sets ReplicaN
Declaration
public int? ReplicaN { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
ShardGroupDuration
Gets or Sets ShardGroupDuration
Declaration
public long? ShardGroupDuration { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> |
ShardGroups
Gets or Sets ShardGroups
Declaration
public List<ShardGroupManifest> ShardGroups { get; set; }
Property Value
Type | Description |
---|---|
List<ShardGroupManifest> |
Subscriptions
Gets or Sets Subscriptions
Declaration
public List<SubscriptionManifest> Subscriptions { get; set; }
Property Value
Type | Description |
---|---|
List<SubscriptionManifest> |
Methods
Equals(RetentionPolicyManifest)
Returns true if RetentionPolicyManifest instances are equal
Declaration
public bool Equals(RetentionPolicyManifest input)
Parameters
Type | Name | Description |
---|---|---|
RetentionPolicyManifest | input | Instance of RetentionPolicyManifest 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 |