// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.logz.fluent.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Response of payload to be passed while installing VM agent. */
@Fluent
public final class VMExtensionPayloadInner {
    /*
     * API Key corresponding to the resource.
     */
    @JsonProperty(value = "apiKey")
    private String apiKey;

    /*
     * Logz.io region where the resource has been created.
     */
    @JsonProperty(value = "region")
    private String region;

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

    /**
     * Get the apiKey property: API Key corresponding to the resource.
     *
     * @return the apiKey value.
     */
    public String apiKey() {
        return this.apiKey;
    }

    /**
     * Set the apiKey property: API Key corresponding to the resource.
     *
     * @param apiKey the apiKey value to set.
     * @return the VMExtensionPayloadInner object itself.
     */
    public VMExtensionPayloadInner withApiKey(String apiKey) {
        this.apiKey = apiKey;
        return this;
    }

    /**
     * Get the region property: Logz.io region where the resource has been created.
     *
     * @return the region value.
     */
    public String region() {
        return this.region;
    }

    /**
     * Set the region property: Logz.io region where the resource has been created.
     *
     * @param region the region value to set.
     * @return the VMExtensionPayloadInner object itself.
     */
    public VMExtensionPayloadInner withRegion(String region) {
        this.region = region;
        return this;
    }

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