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

com.azure.resourcemanager.appplatform.models.ConfigurationServiceGitPropertyValidateResult Maven / Gradle / Ivy

Go to download

This package contains Microsoft Azure App Platform Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt

There is a newer version: 2.44.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.appplatform.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** Validation result for configuration service settings. */
@Fluent
public final class ConfigurationServiceGitPropertyValidateResult {
    /*
     * Indicate if the configuration service settings are valid
     */
    @JsonProperty(value = "isValid")
    private Boolean isValid;

    /*
     * The detail validation results
     */
    @JsonProperty(value = "gitReposValidationResult")
    private List gitReposValidationResult;

    /**
     * Get the isValid property: Indicate if the configuration service settings are valid.
     *
     * @return the isValid value.
     */
    public Boolean isValid() {
        return this.isValid;
    }

    /**
     * Set the isValid property: Indicate if the configuration service settings are valid.
     *
     * @param isValid the isValid value to set.
     * @return the ConfigurationServiceGitPropertyValidateResult object itself.
     */
    public ConfigurationServiceGitPropertyValidateResult withIsValid(Boolean isValid) {
        this.isValid = isValid;
        return this;
    }

    /**
     * Get the gitReposValidationResult property: The detail validation results.
     *
     * @return the gitReposValidationResult value.
     */
    public List gitReposValidationResult() {
        return this.gitReposValidationResult;
    }

    /**
     * Set the gitReposValidationResult property: The detail validation results.
     *
     * @param gitReposValidationResult the gitReposValidationResult value to set.
     * @return the ConfigurationServiceGitPropertyValidateResult object itself.
     */
    public ConfigurationServiceGitPropertyValidateResult withGitReposValidationResult(
        List gitReposValidationResult) {
        this.gitReposValidationResult = gitReposValidationResult;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
        if (gitReposValidationResult() != null) {
            gitReposValidationResult().forEach(e -> e.validate());
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy