public PutDs3TargetReadPreferenceSpectraS3Request(string bucketId, TargetReadPreference readPreference, string targetId) { this.BucketId = bucketId; this.ReadPreference = readPreference; this.TargetId = targetId; this.QueryParams.Add("bucket_id", bucketId); this.QueryParams.Add("read_preference", readPreference.ToString()); this.QueryParams.Add("target_id", targetId); }
public GetDs3TargetsSpectraS3Request WithDefaultReadPreference(TargetReadPreference? defaultReadPreference) { this._defaultReadPreference = defaultReadPreference; if (defaultReadPreference != null) { this.QueryParams.Add("default_read_preference", defaultReadPreference.ToString()); } else { this.QueryParams.Remove("default_read_preference"); } return this; }
public GetDs3TargetReadPreferencesSpectraS3Request WithReadPreference(TargetReadPreference? readPreference) { this._readPreference = readPreference; if (readPreference != null) { this.QueryParams.Add("read_preference", readPreference.ToString()); } else { this.QueryParams.Remove("read_preference"); } return this; }