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

com.azure.resourcemanager.automation.models.DscConfigurationParameter Maven / Gradle / Ivy

Go to download

This package contains Microsoft Azure SDK for Automation Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Automation Client. Package tag package-2019-06.

There is a newer version: 1.0.0
Show newest version
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.automation.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Definition of the configuration parameter type. */
@Fluent
public final class DscConfigurationParameter {
    @JsonIgnore private final ClientLogger logger = new ClientLogger(DscConfigurationParameter.class);

    /*
     * Gets or sets the type of the parameter.
     */
    @JsonProperty(value = "type")
    private String type;

    /*
     * Gets or sets a Boolean value to indicate whether the parameter is
     * mandatory or not.
     */
    @JsonProperty(value = "isMandatory")
    private Boolean isMandatory;

    /*
     * Get or sets the position of the parameter.
     */
    @JsonProperty(value = "position")
    private Integer position;

    /*
     * Gets or sets the default value of parameter.
     */
    @JsonProperty(value = "defaultValue")
    private String defaultValue;

    /**
     * Get the type property: Gets or sets the type of the parameter.
     *
     * @return the type value.
     */
    public String type() {
        return this.type;
    }

    /**
     * Set the type property: Gets or sets the type of the parameter.
     *
     * @param type the type value to set.
     * @return the DscConfigurationParameter object itself.
     */
    public DscConfigurationParameter withType(String type) {
        this.type = type;
        return this;
    }

    /**
     * Get the isMandatory property: Gets or sets a Boolean value to indicate whether the parameter is mandatory or not.
     *
     * @return the isMandatory value.
     */
    public Boolean isMandatory() {
        return this.isMandatory;
    }

    /**
     * Set the isMandatory property: Gets or sets a Boolean value to indicate whether the parameter is mandatory or not.
     *
     * @param isMandatory the isMandatory value to set.
     * @return the DscConfigurationParameter object itself.
     */
    public DscConfigurationParameter withIsMandatory(Boolean isMandatory) {
        this.isMandatory = isMandatory;
        return this;
    }

    /**
     * Get the position property: Get or sets the position of the parameter.
     *
     * @return the position value.
     */
    public Integer position() {
        return this.position;
    }

    /**
     * Set the position property: Get or sets the position of the parameter.
     *
     * @param position the position value to set.
     * @return the DscConfigurationParameter object itself.
     */
    public DscConfigurationParameter withPosition(Integer position) {
        this.position = position;
        return this;
    }

    /**
     * Get the defaultValue property: Gets or sets the default value of parameter.
     *
     * @return the defaultValue value.
     */
    public String defaultValue() {
        return this.defaultValue;
    }

    /**
     * Set the defaultValue property: Gets or sets the default value of parameter.
     *
     * @param defaultValue the defaultValue value to set.
     * @return the DscConfigurationParameter object itself.
     */
    public DscConfigurationParameter withDefaultValue(String defaultValue) {
        this.defaultValue = defaultValue;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy