com.pulumi.azurenative.web.outputs.PushSettingsResponse 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.web.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class PushSettingsResponse {
/**
* @return Gets or sets a JSON string containing a list of dynamic tags that will be evaluated from user claims in the push registration endpoint.
*
*/
private @Nullable String dynamicTagsJson;
/**
* @return Resource Id.
*
*/
private String id;
/**
* @return Gets or sets a flag indicating whether the Push endpoint is enabled.
*
*/
private Boolean isPushEnabled;
/**
* @return Kind of resource.
*
*/
private @Nullable String kind;
/**
* @return Resource Name.
*
*/
private String name;
/**
* @return Gets or sets a JSON string containing a list of tags that are whitelisted for use by the push registration endpoint.
*
*/
private @Nullable String tagWhitelistJson;
/**
* @return Gets or sets a JSON string containing a list of tags that require user authentication to be used in the push registration endpoint.
* Tags can consist of alphanumeric characters and the following:
* '_', '{@literal @}', '#', '.', ':', '-'.
* Validation should be performed at the PushRequestHandler.
*
*/
private @Nullable String tagsRequiringAuth;
/**
* @return Resource type.
*
*/
private String type;
private PushSettingsResponse() {}
/**
* @return Gets or sets a JSON string containing a list of dynamic tags that will be evaluated from user claims in the push registration endpoint.
*
*/
public Optional dynamicTagsJson() {
return Optional.ofNullable(this.dynamicTagsJson);
}
/**
* @return Resource Id.
*
*/
public String id() {
return this.id;
}
/**
* @return Gets or sets a flag indicating whether the Push endpoint is enabled.
*
*/
public Boolean isPushEnabled() {
return this.isPushEnabled;
}
/**
* @return Kind of resource.
*
*/
public Optional kind() {
return Optional.ofNullable(this.kind);
}
/**
* @return Resource Name.
*
*/
public String name() {
return this.name;
}
/**
* @return Gets or sets a JSON string containing a list of tags that are whitelisted for use by the push registration endpoint.
*
*/
public Optional tagWhitelistJson() {
return Optional.ofNullable(this.tagWhitelistJson);
}
/**
* @return Gets or sets a JSON string containing a list of tags that require user authentication to be used in the push registration endpoint.
* Tags can consist of alphanumeric characters and the following:
* '_', '{@literal @}', '#', '.', ':', '-'.
* Validation should be performed at the PushRequestHandler.
*
*/
public Optional tagsRequiringAuth() {
return Optional.ofNullable(this.tagsRequiringAuth);
}
/**
* @return Resource type.
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(PushSettingsResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String dynamicTagsJson;
private String id;
private Boolean isPushEnabled;
private @Nullable String kind;
private String name;
private @Nullable String tagWhitelistJson;
private @Nullable String tagsRequiringAuth;
private String type;
public Builder() {}
public Builder(PushSettingsResponse defaults) {
Objects.requireNonNull(defaults);
this.dynamicTagsJson = defaults.dynamicTagsJson;
this.id = defaults.id;
this.isPushEnabled = defaults.isPushEnabled;
this.kind = defaults.kind;
this.name = defaults.name;
this.tagWhitelistJson = defaults.tagWhitelistJson;
this.tagsRequiringAuth = defaults.tagsRequiringAuth;
this.type = defaults.type;
}
@CustomType.Setter
public Builder dynamicTagsJson(@Nullable String dynamicTagsJson) {
this.dynamicTagsJson = dynamicTagsJson;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("PushSettingsResponse", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder isPushEnabled(Boolean isPushEnabled) {
if (isPushEnabled == null) {
throw new MissingRequiredPropertyException("PushSettingsResponse", "isPushEnabled");
}
this.isPushEnabled = isPushEnabled;
return this;
}
@CustomType.Setter
public Builder kind(@Nullable String kind) {
this.kind = kind;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("PushSettingsResponse", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder tagWhitelistJson(@Nullable String tagWhitelistJson) {
this.tagWhitelistJson = tagWhitelistJson;
return this;
}
@CustomType.Setter
public Builder tagsRequiringAuth(@Nullable String tagsRequiringAuth) {
this.tagsRequiringAuth = tagsRequiringAuth;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("PushSettingsResponse", "type");
}
this.type = type;
return this;
}
public PushSettingsResponse build() {
final var _resultValue = new PushSettingsResponse();
_resultValue.dynamicTagsJson = dynamicTagsJson;
_resultValue.id = id;
_resultValue.isPushEnabled = isPushEnabled;
_resultValue.kind = kind;
_resultValue.name = name;
_resultValue.tagWhitelistJson = tagWhitelistJson;
_resultValue.tagsRequiringAuth = tagsRequiringAuth;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy