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

package com.azure.messaging.eventgrid.systemevents;

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

/** The connected registry information if the event is generated by a connected registry. */
@Fluent
public final class ContainerRegistryEventConnectedRegistry {
    /*
     * The name of the connected registry that generated this event.
     */
    @JsonProperty(value = "name")
    private String name;

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

    /**
     * Get the name property: The name of the connected registry that generated this event.
     *
     * @return the name value.
     */
    public String getName() {
        return this.name;
    }

    /**
     * Set the name property: The name of the connected registry that generated this event.
     *
     * @param name the name value to set.
     * @return the ContainerRegistryEventConnectedRegistry object itself.
     */
    public ContainerRegistryEventConnectedRegistry setName(String name) {
        this.name = name;
        return this;
    }
}
