com.pulumi.googlenative.privateca.v1.outputs.KeyUsageResponse 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.googlenative.privateca.v1.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.googlenative.privateca.v1.outputs.ExtendedKeyUsageOptionsResponse;
import com.pulumi.googlenative.privateca.v1.outputs.KeyUsageOptionsResponse;
import com.pulumi.googlenative.privateca.v1.outputs.ObjectIdResponse;
import java.util.List;
import java.util.Objects;
@CustomType
public final class KeyUsageResponse {
/**
* @return Describes high-level ways in which a key may be used.
*
*/
private KeyUsageOptionsResponse baseKeyUsage;
/**
* @return Detailed scenarios in which a key may be used.
*
*/
private ExtendedKeyUsageOptionsResponse extendedKeyUsage;
/**
* @return Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message.
*
*/
private List unknownExtendedKeyUsages;
private KeyUsageResponse() {}
/**
* @return Describes high-level ways in which a key may be used.
*
*/
public KeyUsageOptionsResponse baseKeyUsage() {
return this.baseKeyUsage;
}
/**
* @return Detailed scenarios in which a key may be used.
*
*/
public ExtendedKeyUsageOptionsResponse extendedKeyUsage() {
return this.extendedKeyUsage;
}
/**
* @return Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message.
*
*/
public List unknownExtendedKeyUsages() {
return this.unknownExtendedKeyUsages;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(KeyUsageResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private KeyUsageOptionsResponse baseKeyUsage;
private ExtendedKeyUsageOptionsResponse extendedKeyUsage;
private List unknownExtendedKeyUsages;
public Builder() {}
public Builder(KeyUsageResponse defaults) {
Objects.requireNonNull(defaults);
this.baseKeyUsage = defaults.baseKeyUsage;
this.extendedKeyUsage = defaults.extendedKeyUsage;
this.unknownExtendedKeyUsages = defaults.unknownExtendedKeyUsages;
}
@CustomType.Setter
public Builder baseKeyUsage(KeyUsageOptionsResponse baseKeyUsage) {
this.baseKeyUsage = Objects.requireNonNull(baseKeyUsage);
return this;
}
@CustomType.Setter
public Builder extendedKeyUsage(ExtendedKeyUsageOptionsResponse extendedKeyUsage) {
this.extendedKeyUsage = Objects.requireNonNull(extendedKeyUsage);
return this;
}
@CustomType.Setter
public Builder unknownExtendedKeyUsages(List unknownExtendedKeyUsages) {
this.unknownExtendedKeyUsages = Objects.requireNonNull(unknownExtendedKeyUsages);
return this;
}
public Builder unknownExtendedKeyUsages(ObjectIdResponse... unknownExtendedKeyUsages) {
return unknownExtendedKeyUsages(List.of(unknownExtendedKeyUsages));
}
public KeyUsageResponse build() {
final var o = new KeyUsageResponse();
o.baseKeyUsage = baseKeyUsage;
o.extendedKeyUsage = extendedKeyUsage;
o.unknownExtendedKeyUsages = unknownExtendedKeyUsages;
return o;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy