
com.pulumi.azurenative.containerregistry.outputs.RequestResponse 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.containerregistry.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class RequestResponse {
/**
* @return The IP or hostname and possibly port of the client connection that initiated the event. This is the RemoteAddr from the standard http request.
*
*/
private @Nullable String addr;
/**
* @return The externally accessible hostname of the registry instance, as specified by the http host header on incoming requests.
*
*/
private @Nullable String host;
/**
* @return The ID of the request that initiated the event.
*
*/
private @Nullable String id;
/**
* @return The request method that generated the event.
*
*/
private @Nullable String method;
/**
* @return The user agent header of the request.
*
*/
private @Nullable String useragent;
private RequestResponse() {}
/**
* @return The IP or hostname and possibly port of the client connection that initiated the event. This is the RemoteAddr from the standard http request.
*
*/
public Optional addr() {
return Optional.ofNullable(this.addr);
}
/**
* @return The externally accessible hostname of the registry instance, as specified by the http host header on incoming requests.
*
*/
public Optional host() {
return Optional.ofNullable(this.host);
}
/**
* @return The ID of the request that initiated the event.
*
*/
public Optional id() {
return Optional.ofNullable(this.id);
}
/**
* @return The request method that generated the event.
*
*/
public Optional method() {
return Optional.ofNullable(this.method);
}
/**
* @return The user agent header of the request.
*
*/
public Optional useragent() {
return Optional.ofNullable(this.useragent);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(RequestResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String addr;
private @Nullable String host;
private @Nullable String id;
private @Nullable String method;
private @Nullable String useragent;
public Builder() {}
public Builder(RequestResponse defaults) {
Objects.requireNonNull(defaults);
this.addr = defaults.addr;
this.host = defaults.host;
this.id = defaults.id;
this.method = defaults.method;
this.useragent = defaults.useragent;
}
@CustomType.Setter
public Builder addr(@Nullable String addr) {
this.addr = addr;
return this;
}
@CustomType.Setter
public Builder host(@Nullable String host) {
this.host = host;
return this;
}
@CustomType.Setter
public Builder id(@Nullable String id) {
this.id = id;
return this;
}
@CustomType.Setter
public Builder method(@Nullable String method) {
this.method = method;
return this;
}
@CustomType.Setter
public Builder useragent(@Nullable String useragent) {
this.useragent = useragent;
return this;
}
public RequestResponse build() {
final var _resultValue = new RequestResponse();
_resultValue.addr = addr;
_resultValue.host = host;
_resultValue.id = id;
_resultValue.method = method;
_resultValue.useragent = useragent;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy