com.microsoft.azure.arm.resources.models.implementation.ChildResourceImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-arm-client-runtime Show documentation
Show all versions of azure-arm-client-runtime Show documentation
This package contains the ARM runtime for AutoRest generated Azure Java clients.
/**
* 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();
}