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.management.msi.implementation; import com.microsoft.azure.management.apigeneration.LangDefinition; import com.microsoft.azure.management.msi.Identities; import com.microsoft.azure.management.msi.Identity; import com.microsoft.azure.management.resources.fluentcore.arm.collection.implementation.TopLevelModifiableResourcesImpl;
The implementation for Identities.
/** * The implementation for Identities. */
@LangDefinition final class IdentitesImpl extends TopLevelModifiableResourcesImpl<Identity, IdentityImpl, IdentityInner, UserAssignedIdentitiesInner, MSIManager> implements Identities { protected IdentitesImpl(UserAssignedIdentitiesInner innerCollection, MSIManager manager) { super(innerCollection, manager); } @Override protected IdentityImpl wrapModel(String name) { return new IdentityImpl(name, new IdentityInner(), this.manager()); } @Override protected IdentityImpl wrapModel(IdentityInner inner) { if (inner == null) { return null; } else { return new IdentityImpl(inner.name(), inner, this.manager()); } } @Override public Identity.DefinitionStages.Blank define(String name) { return wrapModel(name); } }