<commit_before>/*
 * Copyright 2013-2015 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.cloudfoundry.client.v2.organizations;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Singular;
import lombok.ToString;
import org.cloudfoundry.client.Validatable;
import org.cloudfoundry.client.ValidationResult;
import org.cloudfoundry.client.v2.FilterParameter;
import org.cloudfoundry.client.v2.PaginatedRequest;

import java.util.List;

/**
 * The request payload for the List all Spaces for the Organization operation
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public final class ListOrganizationServicesRequest extends PaginatedRequest implements Validatable {

    @Getter(onMethod = @__(@FilterParameter("active")))
    private final List<Boolean> actives;

    /**
     * The id
     *
     * @param id the id
     * @return the id
     */
    @Getter(onMethod = @__(@JsonIgnore))
    private final String id;

    @Getter(onMethod = @__(@FilterParameter("label")))
    private final List<String> labels;

    @Getter(onMethod = @__(@FilterParameter("provider")))
    private final List<String> providers;

    @Getter(onMethod = @__(@FilterParameter("service_broker_guid")))
    private final List<String> serviceBrokerIds;

    @Builder
    ListOrganizationServicesRequest(OrderDirection orderDirection, Integer page, Integer resultsPerPage,
                                    @Singular List<Boolean> actives,
                                    String id,
                                    @Singular List<String> labels,
                                    @Singular List<String> providers,
                                    @Singular List<String> serviceBrokerIds) {
        super(orderDirection, page, resultsPerPage);

        this.actives = actives;
        this.id = id;
        this.labels = labels;
        this.providers = providers;
        this.serviceBrokerIds = serviceBrokerIds;<commit_msg>List organization services rework<commit_after>/*
 * Copyright 2013-2015 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.cloudfoundry.client.v2.organizations;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Singular;
import lombok.ToString;
import org.cloudfoundry.client.Validatable;
import org.cloudfoundry.client.ValidationResult;
import org.cloudfoundry.client.v2.FilterParameter;
import org.cloudfoundry.client.v2.PaginatedRequest;

import java.util.List;

/**
 * The request payload for the List all Spaces for the Organization operation
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public final class ListOrganizationServicesRequest extends PaginatedRequest implements Validatable {

    /**
     * The actives
     *
     * @param actives the actives
     * @return the actives
     */
    @Getter(onMethod = @__(@FilterParameter("active")))
    private final List<Boolean> actives;

    /**
     * The id
     *
     * @param id the id
     * @return the id
     */
    @Getter(onMethod = @__(@JsonIgnore))
    private final String id;

    /**
     * The labels
     *
     * @param labels the labels
     * @return the labels
     */
    @Getter(onMethod = @__(@FilterParameter("label")))
    private final List<String> labels;

    /**
     * The providers
     *
     * @param providers the providers
     * @return the providers
     */
    @Getter(onMethod = @__(@FilterParameter("provider")))
    private final List<String> providers;

    /**
     * The service broker ids
     *
     * @param serviceBrokerIds the service broker ids
     * @return the service broker ids
     */
    @Getter(onMethod = @__(@FilterParameter("service_broker_guid")))
    private final List<String> serviceBrokerIds;

    @Builder
    ListOrganizationServicesRequest(OrderDirection orderDirection, Integer page, Integer resultsPerPage,
                                    @Singular List<Boolean> actives,
                                    String id,
                                    @Singular List<String> labels,
                                    @Singular List<String> providers,
                                    @Singular List<String> serviceBrokerIds) {
        super(orderDirection, page, resultsPerPage);

        this.actives = actives;
        this.id = id;
        this.labels = labels;
        this.providers = providers;
        this.serviceBrokerIds = serviceBrokerIds;
{'fraction_non_alphanumeric': 0.08750437521876094, 'fraction_numerical': 0.005250262513125656, 'mean_word_length': 2.8877551020408165, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7065506', 'n_tokens_mistral': 1540, 'n_tokens_neox': 1504, 'n_words': 464}