public PutDataPersistenceRuleSpectraS3Request(string dataPolicyId, DataIsolationLevel isolationLevel, string storageDomainId, DataPersistenceRuleType type) { this.DataPolicyId = dataPolicyId; this.IsolationLevel = isolationLevel; this.StorageDomainId = storageDomainId; this.Type = type; this.QueryParams.Add("data_policy_id", dataPolicyId); this.QueryParams.Add("isolation_level", isolationLevel.ToString()); this.QueryParams.Add("storage_domain_id", storageDomainId); this.QueryParams.Add("type", type.ToString()); }
public ModifyDataPersistenceRuleSpectraS3Request WithIsolationLevel(DataIsolationLevel? isolationLevel) { this._isolationLevel = isolationLevel; if (isolationLevel != null) { this.QueryParams.Add("isolation_level", isolationLevel.ToString()); } else { this.QueryParams.Remove("isolation_level"); } return this; }