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

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

import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.databoxedge.models.ArmBaseModel;
import com.fasterxml.jackson.annotation.JsonProperty;

/** The extended Info of the Data Box Edge/Gateway device. */
@Fluent
public final class DataBoxEdgeDeviceExtendedInfoInner extends ArmBaseModel {
    /*
     * The extended info properties.
     */
    @JsonProperty(value = "properties")
    private DataBoxEdgeDeviceExtendedInfoProperties innerProperties;

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

    /**
     * Get the innerProperties property: The extended info properties.
     *
     * @return the innerProperties value.
     */
    private DataBoxEdgeDeviceExtendedInfoProperties innerProperties() {
        return this.innerProperties;
    }

    /**
     * Get the encryptionKeyThumbprint property: The digital signature of encrypted certificate.
     *
     * @return the encryptionKeyThumbprint value.
     */
    public String encryptionKeyThumbprint() {
        return this.innerProperties() == null ? null : this.innerProperties().encryptionKeyThumbprint();
    }

    /**
     * Set the encryptionKeyThumbprint property: The digital signature of encrypted certificate.
     *
     * @param encryptionKeyThumbprint the encryptionKeyThumbprint value to set.
     * @return the DataBoxEdgeDeviceExtendedInfoInner object itself.
     */
    public DataBoxEdgeDeviceExtendedInfoInner withEncryptionKeyThumbprint(String encryptionKeyThumbprint) {
        if (this.innerProperties() == null) {
            this.innerProperties = new DataBoxEdgeDeviceExtendedInfoProperties();
        }
        this.innerProperties().withEncryptionKeyThumbprint(encryptionKeyThumbprint);
        return this;
    }

    /**
     * Get the encryptionKey property: The public part of the encryption certificate. Client uses this to encrypt any
     * secret.
     *
     * @return the encryptionKey value.
     */
    public String encryptionKey() {
        return this.innerProperties() == null ? null : this.innerProperties().encryptionKey();
    }

    /**
     * Set the encryptionKey property: The public part of the encryption certificate. Client uses this to encrypt any
     * secret.
     *
     * @param encryptionKey the encryptionKey value to set.
     * @return the DataBoxEdgeDeviceExtendedInfoInner object itself.
     */
    public DataBoxEdgeDeviceExtendedInfoInner withEncryptionKey(String encryptionKey) {
        if (this.innerProperties() == null) {
            this.innerProperties = new DataBoxEdgeDeviceExtendedInfoProperties();
        }
        this.innerProperties().withEncryptionKey(encryptionKey);
        return this;
    }

    /**
     * Get the resourceKey property: The Resource ID of the Resource.
     *
     * @return the resourceKey value.
     */
    public String resourceKey() {
        return this.innerProperties() == null ? null : this.innerProperties().resourceKey();
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    @Override
    public void validate() {
        super.validate();
        if (innerProperties() != null) {
            innerProperties().validate();
        }
    }
}
