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 WithType(DataPersistenceRuleType? type) { this._type = type; if (type != null) { this.QueryParams.Add("type", type.ToString()); } else { this.QueryParams.Remove("type"); } return this; }