
com.pulumi.azurenative.network.outputs.BastionActiveSessionResponse Maven / Gradle / Ivy
// *** 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.network.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.lang.Object;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class BastionActiveSessionResponse {
/**
* @return The protocol used to connect to the target.
*
*/
private String protocol;
/**
* @return The type of the resource.
*
*/
private String resourceType;
/**
* @return Duration in mins the session has been active.
*
*/
private Double sessionDurationInMins;
/**
* @return A unique id for the session.
*
*/
private String sessionId;
/**
* @return The time when the session started.
*
*/
private Object startTime;
/**
* @return The host name of the target.
*
*/
private String targetHostName;
/**
* @return The IP Address of the target.
*
*/
private String targetIpAddress;
/**
* @return The resource group of the target.
*
*/
private String targetResourceGroup;
/**
* @return The resource id of the target.
*
*/
private String targetResourceId;
/**
* @return The subscription id for the target virtual machine.
*
*/
private String targetSubscriptionId;
/**
* @return The user name who is active on this session.
*
*/
private String userName;
private BastionActiveSessionResponse() {}
/**
* @return The protocol used to connect to the target.
*
*/
public String protocol() {
return this.protocol;
}
/**
* @return The type of the resource.
*
*/
public String resourceType() {
return this.resourceType;
}
/**
* @return Duration in mins the session has been active.
*
*/
public Double sessionDurationInMins() {
return this.sessionDurationInMins;
}
/**
* @return A unique id for the session.
*
*/
public String sessionId() {
return this.sessionId;
}
/**
* @return The time when the session started.
*
*/
public Object startTime() {
return this.startTime;
}
/**
* @return The host name of the target.
*
*/
public String targetHostName() {
return this.targetHostName;
}
/**
* @return The IP Address of the target.
*
*/
public String targetIpAddress() {
return this.targetIpAddress;
}
/**
* @return The resource group of the target.
*
*/
public String targetResourceGroup() {
return this.targetResourceGroup;
}
/**
* @return The resource id of the target.
*
*/
public String targetResourceId() {
return this.targetResourceId;
}
/**
* @return The subscription id for the target virtual machine.
*
*/
public String targetSubscriptionId() {
return this.targetSubscriptionId;
}
/**
* @return The user name who is active on this session.
*
*/
public String userName() {
return this.userName;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(BastionActiveSessionResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String protocol;
private String resourceType;
private Double sessionDurationInMins;
private String sessionId;
private Object startTime;
private String targetHostName;
private String targetIpAddress;
private String targetResourceGroup;
private String targetResourceId;
private String targetSubscriptionId;
private String userName;
public Builder() {}
public Builder(BastionActiveSessionResponse defaults) {
Objects.requireNonNull(defaults);
this.protocol = defaults.protocol;
this.resourceType = defaults.resourceType;
this.sessionDurationInMins = defaults.sessionDurationInMins;
this.sessionId = defaults.sessionId;
this.startTime = defaults.startTime;
this.targetHostName = defaults.targetHostName;
this.targetIpAddress = defaults.targetIpAddress;
this.targetResourceGroup = defaults.targetResourceGroup;
this.targetResourceId = defaults.targetResourceId;
this.targetSubscriptionId = defaults.targetSubscriptionId;
this.userName = defaults.userName;
}
@CustomType.Setter
public Builder protocol(String protocol) {
if (protocol == null) {
throw new MissingRequiredPropertyException("BastionActiveSessionResponse", "protocol");
}
this.protocol = protocol;
return this;
}
@CustomType.Setter
public Builder resourceType(String resourceType) {
if (resourceType == null) {
throw new MissingRequiredPropertyException("BastionActiveSessionResponse", "resourceType");
}
this.resourceType = resourceType;
return this;
}
@CustomType.Setter
public Builder sessionDurationInMins(Double sessionDurationInMins) {
if (sessionDurationInMins == null) {
throw new MissingRequiredPropertyException("BastionActiveSessionResponse", "sessionDurationInMins");
}
this.sessionDurationInMins = sessionDurationInMins;
return this;
}
@CustomType.Setter
public Builder sessionId(String sessionId) {
if (sessionId == null) {
throw new MissingRequiredPropertyException("BastionActiveSessionResponse", "sessionId");
}
this.sessionId = sessionId;
return this;
}
@CustomType.Setter
public Builder startTime(Object startTime) {
if (startTime == null) {
throw new MissingRequiredPropertyException("BastionActiveSessionResponse", "startTime");
}
this.startTime = startTime;
return this;
}
@CustomType.Setter
public Builder targetHostName(String targetHostName) {
if (targetHostName == null) {
throw new MissingRequiredPropertyException("BastionActiveSessionResponse", "targetHostName");
}
this.targetHostName = targetHostName;
return this;
}
@CustomType.Setter
public Builder targetIpAddress(String targetIpAddress) {
if (targetIpAddress == null) {
throw new MissingRequiredPropertyException("BastionActiveSessionResponse", "targetIpAddress");
}
this.targetIpAddress = targetIpAddress;
return this;
}
@CustomType.Setter
public Builder targetResourceGroup(String targetResourceGroup) {
if (targetResourceGroup == null) {
throw new MissingRequiredPropertyException("BastionActiveSessionResponse", "targetResourceGroup");
}
this.targetResourceGroup = targetResourceGroup;
return this;
}
@CustomType.Setter
public Builder targetResourceId(String targetResourceId) {
if (targetResourceId == null) {
throw new MissingRequiredPropertyException("BastionActiveSessionResponse", "targetResourceId");
}
this.targetResourceId = targetResourceId;
return this;
}
@CustomType.Setter
public Builder targetSubscriptionId(String targetSubscriptionId) {
if (targetSubscriptionId == null) {
throw new MissingRequiredPropertyException("BastionActiveSessionResponse", "targetSubscriptionId");
}
this.targetSubscriptionId = targetSubscriptionId;
return this;
}
@CustomType.Setter
public Builder userName(String userName) {
if (userName == null) {
throw new MissingRequiredPropertyException("BastionActiveSessionResponse", "userName");
}
this.userName = userName;
return this;
}
public BastionActiveSessionResponse build() {
final var _resultValue = new BastionActiveSessionResponse();
_resultValue.protocol = protocol;
_resultValue.resourceType = resourceType;
_resultValue.sessionDurationInMins = sessionDurationInMins;
_resultValue.sessionId = sessionId;
_resultValue.startTime = startTime;
_resultValue.targetHostName = targetHostName;
_resultValue.targetIpAddress = targetIpAddress;
_resultValue.targetResourceGroup = targetResourceGroup;
_resultValue.targetResourceId = targetResourceId;
_resultValue.targetSubscriptionId = targetSubscriptionId;
_resultValue.userName = userName;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy