All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.cloudslang.content.sitescope.entities.DeleteRemoteServerInputs Maven / Gradle / Ivy

/*
 * (c) Copyright 2020 EntIT Software LLC, a Micro Focus company, L.P.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Apache License v2.0 which accompany this distribution.
 *
 * The Apache License is available 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 io.cloudslang.content.sitescope.entities;

import org.jetbrains.annotations.NotNull;

import static org.apache.commons.lang3.StringUtils.EMPTY;

public class DeleteRemoteServerInputs {
    private String platform;
    private String remoteName;
    private SiteScopeCommonInputs commonInputs;

    private DeleteRemoteServerInputs(String platform, String remoteName, SiteScopeCommonInputs commonInputs) {
        this.platform = platform;
        this.remoteName = remoteName;
        this.commonInputs = commonInputs;
    }

    @NotNull
    public static DeleteRemoteServerInputs.DeleteRemoteServerInputsBuilder builder() {
        return new DeleteRemoteServerInputs.DeleteRemoteServerInputsBuilder();
    }

    @NotNull
    public String getPlatform() {
        return platform;
    }

    @NotNull
    public String getRemoteName() {
        return remoteName;
    }

    @NotNull
    public SiteScopeCommonInputs getCommonInputs() {
        return this.commonInputs;
    }

    public static class DeleteRemoteServerInputsBuilder {
        private String platform = EMPTY;
        private String remoteName = EMPTY;
        private SiteScopeCommonInputs commonInputs;

        public DeleteRemoteServerInputsBuilder() {

        }

        @NotNull
        public DeleteRemoteServerInputs.DeleteRemoteServerInputsBuilder platform(@NotNull final String platform) {
            this.platform = platform;
            return this;
        }

        @NotNull
        public DeleteRemoteServerInputs.DeleteRemoteServerInputsBuilder remoteName(@NotNull final String remoteName) {
            this.remoteName = remoteName;
            return this;
        }

        @NotNull
        public DeleteRemoteServerInputs.DeleteRemoteServerInputsBuilder commonInputs(@NotNull final SiteScopeCommonInputs commonInputs) {
            this.commonInputs = commonInputs;
            return this;
        }

        public DeleteRemoteServerInputs build() {
            return new DeleteRemoteServerInputs(platform, remoteName, commonInputs);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy