com.pulumi.azurenative.devices.outputs.SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponse 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.devices.outputs;
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 SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponse {
/**
* @return Name of the key.
*
*/
private String keyName;
/**
* @return Primary SAS key value.
*
*/
private @Nullable String primaryKey;
/**
* @return Rights that this key has.
*
*/
private String rights;
/**
* @return Secondary SAS key value.
*
*/
private @Nullable String secondaryKey;
private SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponse() {}
/**
* @return Name of the key.
*
*/
public String keyName() {
return this.keyName;
}
/**
* @return Primary SAS key value.
*
*/
public Optional primaryKey() {
return Optional.ofNullable(this.primaryKey);
}
/**
* @return Rights that this key has.
*
*/
public String rights() {
return this.rights;
}
/**
* @return Secondary SAS key value.
*
*/
public Optional secondaryKey() {
return Optional.ofNullable(this.secondaryKey);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String keyName;
private @Nullable String primaryKey;
private String rights;
private @Nullable String secondaryKey;
public Builder() {}
public Builder(SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponse defaults) {
Objects.requireNonNull(defaults);
this.keyName = defaults.keyName;
this.primaryKey = defaults.primaryKey;
this.rights = defaults.rights;
this.secondaryKey = defaults.secondaryKey;
}
@CustomType.Setter
public Builder keyName(String keyName) {
if (keyName == null) {
throw new MissingRequiredPropertyException("SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponse", "keyName");
}
this.keyName = keyName;
return this;
}
@CustomType.Setter
public Builder primaryKey(@Nullable String primaryKey) {
this.primaryKey = primaryKey;
return this;
}
@CustomType.Setter
public Builder rights(String rights) {
if (rights == null) {
throw new MissingRequiredPropertyException("SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponse", "rights");
}
this.rights = rights;
return this;
}
@CustomType.Setter
public Builder secondaryKey(@Nullable String secondaryKey) {
this.secondaryKey = secondaryKey;
return this;
}
public SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponse build() {
final var _resultValue = new SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponse();
_resultValue.keyName = keyName;
_resultValue.primaryKey = primaryKey;
_resultValue.rights = rights;
_resultValue.secondaryKey = secondaryKey;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy