Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.cosmosdb.implementation; import com.microsoft.azure.management.cosmosdb.PrivateEndpointProperty; import com.microsoft.azure.management.cosmosdb.PrivateLinkServiceConnectionStateProperty; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.azure.ProxyResource;
A private endpoint connection.
/** * A private endpoint connection. */
@JsonFlatten public class PrivateEndpointConnectionInner extends ProxyResource {
Private endpoint which the connection belongs to.
/** * Private endpoint which the connection belongs to. */
@JsonProperty(value = "properties.privateEndpoint") private PrivateEndpointProperty privateEndpoint;
Connection State of the Private Endpoint Connection.
/** * Connection State of the Private Endpoint Connection. */
@JsonProperty(value = "properties.privateLinkServiceConnectionState") private PrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState;
Get private endpoint which the connection belongs to.
Returns:the privateEndpoint value
/** * Get private endpoint which the connection belongs to. * * @return the privateEndpoint value */
public PrivateEndpointProperty privateEndpoint() { return this.privateEndpoint; }
Set private endpoint which the connection belongs to.
Params:
  • privateEndpoint – the privateEndpoint value to set
Returns:the PrivateEndpointConnectionInner object itself.
/** * Set private endpoint which the connection belongs to. * * @param privateEndpoint the privateEndpoint value to set * @return the PrivateEndpointConnectionInner object itself. */
public PrivateEndpointConnectionInner withPrivateEndpoint(PrivateEndpointProperty privateEndpoint) { this.privateEndpoint = privateEndpoint; return this; }
Get connection State of the Private Endpoint Connection.
Returns:the privateLinkServiceConnectionState value
/** * Get connection State of the Private Endpoint Connection. * * @return the privateLinkServiceConnectionState value */
public PrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState() { return this.privateLinkServiceConnectionState; }
Set connection State of the Private Endpoint Connection.
Params:
  • privateLinkServiceConnectionState – the privateLinkServiceConnectionState value to set
Returns:the PrivateEndpointConnectionInner object itself.
/** * Set connection State of the Private Endpoint Connection. * * @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set * @return the PrivateEndpointConnectionInner object itself. */
public PrivateEndpointConnectionInner withPrivateLinkServiceConnectionState(PrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState) { this.privateLinkServiceConnectionState = privateLinkServiceConnectionState; return this; } }