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

package com.azure.resourcemanager.apimanagement.models;

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

/** Log of the entity being created, updated or deleted. */
@Fluent
public final class OperationResultLogItemContract {
    /*
     * The type of entity contract.
     */
    @JsonProperty(value = "objectType")
    private String objectType;

    /*
     * Action like create/update/delete.
     */
    @JsonProperty(value = "action")
    private String action;

    /*
     * Identifier of the entity being created/updated/deleted.
     */
    @JsonProperty(value = "objectKey")
    private String objectKey;

    /**
     * Get the objectType property: The type of entity contract.
     *
     * @return the objectType value.
     */
    public String objectType() {
        return this.objectType;
    }

    /**
     * Set the objectType property: The type of entity contract.
     *
     * @param objectType the objectType value to set.
     * @return the OperationResultLogItemContract object itself.
     */
    public OperationResultLogItemContract withObjectType(String objectType) {
        this.objectType = objectType;
        return this;
    }

    /**
     * Get the action property: Action like create/update/delete.
     *
     * @return the action value.
     */
    public String action() {
        return this.action;
    }

    /**
     * Set the action property: Action like create/update/delete.
     *
     * @param action the action value to set.
     * @return the OperationResultLogItemContract object itself.
     */
    public OperationResultLogItemContract withAction(String action) {
        this.action = action;
        return this;
    }

    /**
     * Get the objectKey property: Identifier of the entity being created/updated/deleted.
     *
     * @return the objectKey value.
     */
    public String objectKey() {
        return this.objectKey;
    }

    /**
     * Set the objectKey property: Identifier of the entity being created/updated/deleted.
     *
     * @param objectKey the objectKey value to set.
     * @return the OperationResultLogItemContract object itself.
     */
    public OperationResultLogItemContract withObjectKey(String objectKey) {
        this.objectKey = objectKey;
        return this;
    }

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