SecurityPartnerProviderInner.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.network.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.Resource;
import com.azure.core.management.SubResource;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.network.models.ProvisioningState;
import com.azure.resourcemanager.network.models.SecurityPartnerProviderConnectionStatus;
import com.azure.resourcemanager.network.models.SecurityProviderName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Security Partner Provider resource. */
@JsonFlatten
@Fluent
public class SecurityPartnerProviderInner extends Resource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(SecurityPartnerProviderInner.class);
/*
* A unique read-only string that changes whenever the resource is updated.
*/
@JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY)
private String etag;
/*
* The provisioning state of the Security Partner Provider resource.
*/
@JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private ProvisioningState provisioningState;
/*
* The security provider name.
*/
@JsonProperty(value = "properties.securityProviderName")
private SecurityProviderName securityProviderName;
/*
* The connection status with the Security Partner Provider.
*/
@JsonProperty(value = "properties.connectionStatus", access = JsonProperty.Access.WRITE_ONLY)
private SecurityPartnerProviderConnectionStatus connectionStatus;
/*
* The virtualHub to which the Security Partner Provider belongs.
*/
@JsonProperty(value = "properties.virtualHub")
private SubResource virtualHub;
/*
* Resource ID.
*/
@JsonProperty(value = "id")
private String id;
/**
* Get the etag property: A unique read-only string that changes whenever the resource is updated.
*
* @return the etag value.
*/
public String etag() {
return this.etag;
}
/**
* Get the provisioningState property: The provisioning state of the Security Partner Provider resource.
*
* @return the provisioningState value.
*/
public ProvisioningState provisioningState() {
return this.provisioningState;
}
/**
* Get the securityProviderName property: The security provider name.
*
* @return the securityProviderName value.
*/
public SecurityProviderName securityProviderName() {
return this.securityProviderName;
}
/**
* Set the securityProviderName property: The security provider name.
*
* @param securityProviderName the securityProviderName value to set.
* @return the SecurityPartnerProviderInner object itself.
*/
public SecurityPartnerProviderInner withSecurityProviderName(SecurityProviderName securityProviderName) {
this.securityProviderName = securityProviderName;
return this;
}
/**
* Get the connectionStatus property: The connection status with the Security Partner Provider.
*
* @return the connectionStatus value.
*/
public SecurityPartnerProviderConnectionStatus connectionStatus() {
return this.connectionStatus;
}
/**
* Get the virtualHub property: The virtualHub to which the Security Partner Provider belongs.
*
* @return the virtualHub value.
*/
public SubResource virtualHub() {
return this.virtualHub;
}
/**
* Set the virtualHub property: The virtualHub to which the Security Partner Provider belongs.
*
* @param virtualHub the virtualHub value to set.
* @return the SecurityPartnerProviderInner object itself.
*/
public SecurityPartnerProviderInner withVirtualHub(SubResource virtualHub) {
this.virtualHub = virtualHub;
return this;
}
/**
* Get the id property: Resource ID.
*
* @return the id value.
*/
public String id() {
return this.id;
}
/**
* Set the id property: Resource ID.
*
* @param id the id value to set.
* @return the SecurityPartnerProviderInner object itself.
*/
public SecurityPartnerProviderInner withId(String id) {
this.id = id;
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
}
}