Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License. See License.txt in the project root for
license information.
/**
* 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)
Type parameters: - <InnerT> – Azure inner child class type
- <ParentImplT> – parent implementation
- <ParentT> – parent interface
/**
* Child resource abstract implementation.
* (Internal use only)
* @param <InnerT> Azure inner child class type
* @param <ParentImplT> parent implementation
* @param <ParentT> parent interface
*/
public abstract class ChildResourceImpl<InnerT, ParentImplT extends ParentT, ParentT>
extends IndexableWrapperImpl<InnerT>
implements ChildResource<ParentT> {
private final ParentImplT parent;
protected ChildResourceImpl(InnerT innerObject, ParentImplT parent) {
super(innerObject);
this.parent = parent;
}
Returns: parent resource for this child resource
/**
* @return parent resource for this child resource
*/
public ParentImplT parent() {
return this.parent;
}
@Override
public abstract String name();
}