com.pulumi.azurenative.offazure.outputs.SitePropertiesResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.offazure.outputs;
import com.pulumi.azurenative.offazure.outputs.SiteAgentPropertiesResponse;
import com.pulumi.azurenative.offazure.outputs.SiteSpnPropertiesResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class SitePropertiesResponse {
/**
* @return On-premises agent details.
*
*/
private @Nullable SiteAgentPropertiesResponse agentDetails;
/**
* @return Appliance Name.
*
*/
private @Nullable String applianceName;
/**
* @return ARM ID of migration hub solution for SDS.
*
*/
private @Nullable String discoverySolutionId;
/**
* @return Service endpoint.
*
*/
private String serviceEndpoint;
/**
* @return Service principal identity details used by agent for communication to the service.
*
*/
private @Nullable SiteSpnPropertiesResponse servicePrincipalIdentityDetails;
private SitePropertiesResponse() {}
/**
* @return On-premises agent details.
*
*/
public Optional agentDetails() {
return Optional.ofNullable(this.agentDetails);
}
/**
* @return Appliance Name.
*
*/
public Optional applianceName() {
return Optional.ofNullable(this.applianceName);
}
/**
* @return ARM ID of migration hub solution for SDS.
*
*/
public Optional discoverySolutionId() {
return Optional.ofNullable(this.discoverySolutionId);
}
/**
* @return Service endpoint.
*
*/
public String serviceEndpoint() {
return this.serviceEndpoint;
}
/**
* @return Service principal identity details used by agent for communication to the service.
*
*/
public Optional servicePrincipalIdentityDetails() {
return Optional.ofNullable(this.servicePrincipalIdentityDetails);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(SitePropertiesResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable SiteAgentPropertiesResponse agentDetails;
private @Nullable String applianceName;
private @Nullable String discoverySolutionId;
private String serviceEndpoint;
private @Nullable SiteSpnPropertiesResponse servicePrincipalIdentityDetails;
public Builder() {}
public Builder(SitePropertiesResponse defaults) {
Objects.requireNonNull(defaults);
this.agentDetails = defaults.agentDetails;
this.applianceName = defaults.applianceName;
this.discoverySolutionId = defaults.discoverySolutionId;
this.serviceEndpoint = defaults.serviceEndpoint;
this.servicePrincipalIdentityDetails = defaults.servicePrincipalIdentityDetails;
}
@CustomType.Setter
public Builder agentDetails(@Nullable SiteAgentPropertiesResponse agentDetails) {
this.agentDetails = agentDetails;
return this;
}
@CustomType.Setter
public Builder applianceName(@Nullable String applianceName) {
this.applianceName = applianceName;
return this;
}
@CustomType.Setter
public Builder discoverySolutionId(@Nullable String discoverySolutionId) {
this.discoverySolutionId = discoverySolutionId;
return this;
}
@CustomType.Setter
public Builder serviceEndpoint(String serviceEndpoint) {
if (serviceEndpoint == null) {
throw new MissingRequiredPropertyException("SitePropertiesResponse", "serviceEndpoint");
}
this.serviceEndpoint = serviceEndpoint;
return this;
}
@CustomType.Setter
public Builder servicePrincipalIdentityDetails(@Nullable SiteSpnPropertiesResponse servicePrincipalIdentityDetails) {
this.servicePrincipalIdentityDetails = servicePrincipalIdentityDetails;
return this;
}
public SitePropertiesResponse build() {
final var _resultValue = new SitePropertiesResponse();
_resultValue.agentDetails = agentDetails;
_resultValue.applianceName = applianceName;
_resultValue.discoverySolutionId = discoverySolutionId;
_resultValue.serviceEndpoint = serviceEndpoint;
_resultValue.servicePrincipalIdentityDetails = servicePrincipalIdentityDetails;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy