public PutDataReplicationRuleSpectraS3Request(string dataPolicyId, string ds3TargetId, DataReplicationRuleType type) { this.DataPolicyId = dataPolicyId; this.Ds3TargetId = ds3TargetId; this.Type = type; this.QueryParams.Add("data_policy_id", dataPolicyId); this.QueryParams.Add("ds3_target_id", ds3TargetId); this.QueryParams.Add("type", type.ToString()); }
public GetDataReplicationRulesSpectraS3Request WithType(DataReplicationRuleType? type) { this._type = type; if (type != null) { this.QueryParams.Add("type", type.ToString()); } else { this.QueryParams.Remove("type"); } return this; }