public PutDs3TargetReadPreferenceSpectraS3Request(string bucketId, TargetReadPreferenceType 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 ModifyDs3TargetSpectraS3Request WithDefaultReadPreference(TargetReadPreferenceType? 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(TargetReadPreferenceType? readPreference) { this._readPreference = readPreference; if (readPreference != null) { this.QueryParams.Add("read_preference", readPreference.ToString()); } else { this.QueryParams.Remove("read_preference"); } return this; }