com.microsoft.azure.management.eventhub.implementation.NestedResourceImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-mgmt-eventhub Show documentation
Show all versions of azure-mgmt-eventhub Show documentation
This package contains Microsoft EventHub Management SDK. This package has been deprecated. A replacement package com.azure.resourcemanager:azure-resourcemanager-eventhubs is available as of 31-March-2022. We strongly encourage you to upgrade to continue receiving updates. See Migration Guide https://aka.ms/java-track2-migration-guide for guidance on upgrading. Refer to our deprecation policy https://azure.github.io/azure-sdk/policies_support.html for more details.
/**
* 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.management.eventhub.implementation;
import com.microsoft.azure.ProxyResource;
import com.microsoft.azure.management.apigeneration.LangDefinition;
import com.microsoft.azure.management.eventhub.NestedResource;
import com.microsoft.azure.management.resources.fluentcore.arm.models.HasManager;
import com.microsoft.azure.management.resources.fluentcore.model.HasInner;
import com.microsoft.azure.management.resources.fluentcore.model.Indexable;
import com.microsoft.azure.management.resources.fluentcore.model.implementation.CreatableUpdatableImpl;
import com.microsoft.azure.management.resources.fluentcore.model.implementation.IndexableRefreshableWrapperImpl;
/**
* The implementation for {@link NestedResource}.
* (Internal use only)
*
* @param the fluent model of the nested resource
* @param the inner model of the nested resource
* @param the fluent model implementation of the nested resource
*/
@LangDefinition
public abstract class NestedResourceImpl>
extends CreatableUpdatableImpl
implements
HasInner,
HasManager,
NestedResource {
protected final EventHubManager manager;
NestedResourceImpl(final String name, final InnerModelT inner, EventHubManager manager) {
super(name, inner);
this.manager = manager;
}
@Override
public String id() {
return this.inner().id();
}
@Override
public String name() {
if (this.inner().name() == null) {
return super.name();
} else {
return this.inner().name();
}
}
@Override
public String type() {
return this.inner().type();
}
@Override
public boolean isInCreateMode() {
return this.inner().id() == null;
}
@Override
public EventHubManager manager() {
return this.manager;
}
}