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

com.microsoft.azure.arm.resources.models.implementation.ChildResourceImpl Maven / Gradle / Ivy

There is a newer version: 1.7.14
Show newest version
/**
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See License.txt in the project root for
 * license information.
 */
package com.microsoft.azure.arm.resources.models.implementation;

import com.microsoft.azure.arm.resources.models.ChildResource;
import com.microsoft.azure.arm.model.implementation.IndexableWrapperImpl;

/**
 * Child resource abstract implementation.
 * (Internal use only)
 * @param  Azure inner child class type
 * @param  parent implementation
 * @param  parent interface
 */
public abstract class ChildResourceImpl
    extends IndexableWrapperImpl
    implements ChildResource {

    private final ParentImplT parent;

    protected ChildResourceImpl(InnerT innerObject, ParentImplT parent) {
        super(innerObject);
        this.parent = parent;
    }

    /**
     * @return parent resource for this child resource
     */
    public ParentImplT parent() {
        return this.parent;
    }

    @Override
    public abstract String name();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy