![JAR search and dependency download from the Maven repository](/logo.png)
com.azure.resourcemanager.mongocluster.implementation.PrivateEndpointConnectionResourceImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-mongocluster Show documentation
Show all versions of azure-resourcemanager-mongocluster Show documentation
This package contains Microsoft Azure SDK for Mongo Cluster Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The Microsoft Azure management API provides create, read, update, and delete functionality for Azure Cosmos DB for MongoDB vCore resources including clusters and firewall rules.
The newest version!
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.mongocluster.implementation;
import com.azure.core.management.SystemData;
import com.azure.core.util.Context;
import com.azure.resourcemanager.mongocluster.fluent.models.PrivateEndpointConnectionResourceInner;
import com.azure.resourcemanager.mongocluster.models.PrivateEndpointConnectionProperties;
import com.azure.resourcemanager.mongocluster.models.PrivateEndpointConnectionResource;
public final class PrivateEndpointConnectionResourceImpl
implements PrivateEndpointConnectionResource, PrivateEndpointConnectionResource.Definition {
private PrivateEndpointConnectionResourceInner innerObject;
private final com.azure.resourcemanager.mongocluster.MongoClusterManager serviceManager;
PrivateEndpointConnectionResourceImpl(PrivateEndpointConnectionResourceInner innerObject,
com.azure.resourcemanager.mongocluster.MongoClusterManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
}
public String id() {
return this.innerModel().id();
}
public String name() {
return this.innerModel().name();
}
public String type() {
return this.innerModel().type();
}
public PrivateEndpointConnectionProperties properties() {
return this.innerModel().properties();
}
public SystemData systemData() {
return this.innerModel().systemData();
}
public PrivateEndpointConnectionResourceInner innerModel() {
return this.innerObject;
}
private com.azure.resourcemanager.mongocluster.MongoClusterManager manager() {
return this.serviceManager;
}
private String resourceGroupName;
private String mongoClusterName;
private String privateEndpointConnectionName;
public PrivateEndpointConnectionResourceImpl withExistingMongoCluster(String resourceGroupName,
String mongoClusterName) {
this.resourceGroupName = resourceGroupName;
this.mongoClusterName = mongoClusterName;
return this;
}
public PrivateEndpointConnectionResource create() {
this.innerObject = serviceManager.serviceClient()
.getPrivateEndpointConnections()
.create(resourceGroupName, mongoClusterName, privateEndpointConnectionName, this.innerModel(),
Context.NONE);
return this;
}
public PrivateEndpointConnectionResource create(Context context) {
this.innerObject = serviceManager.serviceClient()
.getPrivateEndpointConnections()
.create(resourceGroupName, mongoClusterName, privateEndpointConnectionName, this.innerModel(), context);
return this;
}
PrivateEndpointConnectionResourceImpl(String name,
com.azure.resourcemanager.mongocluster.MongoClusterManager serviceManager) {
this.innerObject = new PrivateEndpointConnectionResourceInner();
this.serviceManager = serviceManager;
this.privateEndpointConnectionName = name;
}
public PrivateEndpointConnectionResource refresh() {
this.innerObject = serviceManager.serviceClient()
.getPrivateEndpointConnections()
.getWithResponse(resourceGroupName, mongoClusterName, privateEndpointConnectionName, Context.NONE)
.getValue();
return this;
}
public PrivateEndpointConnectionResource refresh(Context context) {
this.innerObject = serviceManager.serviceClient()
.getPrivateEndpointConnections()
.getWithResponse(resourceGroupName, mongoClusterName, privateEndpointConnectionName, context)
.getValue();
return this;
}
public PrivateEndpointConnectionResourceImpl withProperties(PrivateEndpointConnectionProperties properties) {
this.innerModel().withProperties(properties);
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy