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

com.azure.resourcemanager.storage.models.KeyCreationTime Maven / Gradle / Ivy

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

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;

/** Storage account keys creation time. */
@Fluent
public final class KeyCreationTime {
    /*
     * The key1 property.
     */
    @JsonProperty(value = "key1")
    private OffsetDateTime key1;

    /*
     * The key2 property.
     */
    @JsonProperty(value = "key2")
    private OffsetDateTime key2;

    /**
     * Get the key1 property: The key1 property.
     *
     * @return the key1 value.
     */
    public OffsetDateTime key1() {
        return this.key1;
    }

    /**
     * Set the key1 property: The key1 property.
     *
     * @param key1 the key1 value to set.
     * @return the KeyCreationTime object itself.
     */
    public KeyCreationTime withKey1(OffsetDateTime key1) {
        this.key1 = key1;
        return this;
    }

    /**
     * Get the key2 property: The key2 property.
     *
     * @return the key2 value.
     */
    public OffsetDateTime key2() {
        return this.key2;
    }

    /**
     * Set the key2 property: The key2 property.
     *
     * @param key2 the key2 value to set.
     * @return the KeyCreationTime object itself.
     */
    public KeyCreationTime withKey2(OffsetDateTime key2) {
        this.key2 = key2;
        return this;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy