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

com.azure.resourcemanager.appplatform.models.RegenerateTestKeyRequestPayload 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.42.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.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Regenerate test key request payload.
 */
@Fluent
public final class RegenerateTestKeyRequestPayload {
    /*
     * Type of the test key
     */
    @JsonProperty(value = "keyType", required = true)
    private TestKeyType keyType;

    /**
     * Creates an instance of RegenerateTestKeyRequestPayload class.
     */
    public RegenerateTestKeyRequestPayload() {
    }

    /**
     * Get the keyType property: Type of the test key.
     * 
     * @return the keyType value.
     */
    public TestKeyType keyType() {
        return this.keyType;
    }

    /**
     * Set the keyType property: Type of the test key.
     * 
     * @param keyType the keyType value to set.
     * @return the RegenerateTestKeyRequestPayload object itself.
     */
    public RegenerateTestKeyRequestPayload withKeyType(TestKeyType keyType) {
        this.keyType = keyType;
        return this;
    }

    /**
     * Validates the instance.
     * 
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
        if (keyType() == null) {
            throw LOGGER.logExceptionAsError(new IllegalArgumentException(
                "Missing required property keyType in model RegenerateTestKeyRequestPayload"));
        }
    }

    private static final ClientLogger LOGGER = new ClientLogger(RegenerateTestKeyRequestPayload.class);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy