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

com.pulumi.meraki.organizations.outputs.SwitchDevicesCloneParameters Maven / Gradle / Ivy

There is a newer version: 0.4.0-alpha.1731736975
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.meraki.organizations.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class SwitchDevicesCloneParameters {
    /**
     * @return Serial number of the source switch (must be on a network not bound to a template)
     * 
     */
    private @Nullable String sourceSerial;
    /**
     * @return Array of serial numbers of one or more target switches (must be on a network not bound to a template)
     * 
     */
    private @Nullable List targetSerials;

    private SwitchDevicesCloneParameters() {}
    /**
     * @return Serial number of the source switch (must be on a network not bound to a template)
     * 
     */
    public Optional sourceSerial() {
        return Optional.ofNullable(this.sourceSerial);
    }
    /**
     * @return Array of serial numbers of one or more target switches (must be on a network not bound to a template)
     * 
     */
    public List targetSerials() {
        return this.targetSerials == null ? List.of() : this.targetSerials;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(SwitchDevicesCloneParameters defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String sourceSerial;
        private @Nullable List targetSerials;
        public Builder() {}
        public Builder(SwitchDevicesCloneParameters defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.sourceSerial = defaults.sourceSerial;
    	      this.targetSerials = defaults.targetSerials;
        }

        @CustomType.Setter
        public Builder sourceSerial(@Nullable String sourceSerial) {

            this.sourceSerial = sourceSerial;
            return this;
        }
        @CustomType.Setter
        public Builder targetSerials(@Nullable List targetSerials) {

            this.targetSerials = targetSerials;
            return this;
        }
        public Builder targetSerials(String... targetSerials) {
            return targetSerials(List.of(targetSerials));
        }
        public SwitchDevicesCloneParameters build() {
            final var _resultValue = new SwitchDevicesCloneParameters();
            _resultValue.sourceSerial = sourceSerial;
            _resultValue.targetSerials = targetSerials;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy