com.azure.resourcemanager.recoveryservicesbackup.models.PrivateEndpointConnection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-recoveryservicesbackup Show documentation
Show all versions of azure-resourcemanager-recoveryservicesbackup Show documentation
This package contains Microsoft Azure SDK for RecoveryServicesBackup Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Open API 2.0 Specs for Azure RecoveryServices Backup service. Package tag package-2024-04.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.recoveryservicesbackup.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/**
* Private Endpoint Connection Response Properties.
*/
@Fluent
public final class PrivateEndpointConnection {
/*
* Gets or sets provisioning state of the private endpoint connection
*/
@JsonProperty(value = "provisioningState")
private ProvisioningState provisioningState;
/*
* Gets or sets private endpoint associated with the private endpoint connection
*/
@JsonProperty(value = "privateEndpoint")
private PrivateEndpoint privateEndpoint;
/*
* Group Ids for the Private Endpoint
*/
@JsonProperty(value = "groupIds")
private List groupIds;
/*
* Gets or sets private link service connection state
*/
@JsonProperty(value = "privateLinkServiceConnectionState")
private PrivateLinkServiceConnectionState privateLinkServiceConnectionState;
/**
* Creates an instance of PrivateEndpointConnection class.
*/
public PrivateEndpointConnection() {
}
/**
* Get the provisioningState property: Gets or sets provisioning state of the private endpoint connection.
*
* @return the provisioningState value.
*/
public ProvisioningState provisioningState() {
return this.provisioningState;
}
/**
* Set the provisioningState property: Gets or sets provisioning state of the private endpoint connection.
*
* @param provisioningState the provisioningState value to set.
* @return the PrivateEndpointConnection object itself.
*/
public PrivateEndpointConnection withProvisioningState(ProvisioningState provisioningState) {
this.provisioningState = provisioningState;
return this;
}
/**
* Get the privateEndpoint property: Gets or sets private endpoint associated with the private endpoint connection.
*
* @return the privateEndpoint value.
*/
public PrivateEndpoint privateEndpoint() {
return this.privateEndpoint;
}
/**
* Set the privateEndpoint property: Gets or sets private endpoint associated with the private endpoint connection.
*
* @param privateEndpoint the privateEndpoint value to set.
* @return the PrivateEndpointConnection object itself.
*/
public PrivateEndpointConnection withPrivateEndpoint(PrivateEndpoint privateEndpoint) {
this.privateEndpoint = privateEndpoint;
return this;
}
/**
* Get the groupIds property: Group Ids for the Private Endpoint.
*
* @return the groupIds value.
*/
public List groupIds() {
return this.groupIds;
}
/**
* Set the groupIds property: Group Ids for the Private Endpoint.
*
* @param groupIds the groupIds value to set.
* @return the PrivateEndpointConnection object itself.
*/
public PrivateEndpointConnection withGroupIds(List groupIds) {
this.groupIds = groupIds;
return this;
}
/**
* Get the privateLinkServiceConnectionState property: Gets or sets private link service connection state.
*
* @return the privateLinkServiceConnectionState value.
*/
public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
return this.privateLinkServiceConnectionState;
}
/**
* Set the privateLinkServiceConnectionState property: Gets or sets private link service connection state.
*
* @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set.
* @return the PrivateEndpointConnection object itself.
*/
public PrivateEndpointConnection
withPrivateLinkServiceConnectionState(PrivateLinkServiceConnectionState privateLinkServiceConnectionState) {
this.privateLinkServiceConnectionState = privateLinkServiceConnectionState;
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (privateEndpoint() != null) {
privateEndpoint().validate();
}
if (privateLinkServiceConnectionState() != null) {
privateLinkServiceConnectionState().validate();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy