com.pulumi.azurenative.automation.outputs.GetCredentialResult 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.automation.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 GetCredentialResult {
/**
* @return Gets the creation time.
*
*/
private String creationTime;
/**
* @return Gets or sets the description.
*
*/
private @Nullable String description;
/**
* @return Fully qualified resource Id for the resource
*
*/
private String id;
/**
* @return Gets the last modified time.
*
*/
private String lastModifiedTime;
/**
* @return The name of the resource
*
*/
private String name;
/**
* @return The type of the resource.
*
*/
private String type;
/**
* @return Gets the user name of the credential.
*
*/
private String userName;
private GetCredentialResult() {}
/**
* @return Gets the creation time.
*
*/
public String creationTime() {
return this.creationTime;
}
/**
* @return Gets or sets the description.
*
*/
public Optional description() {
return Optional.ofNullable(this.description);
}
/**
* @return Fully qualified resource Id for the resource
*
*/
public String id() {
return this.id;
}
/**
* @return Gets the last modified time.
*
*/
public String lastModifiedTime() {
return this.lastModifiedTime;
}
/**
* @return The name of the resource
*
*/
public String name() {
return this.name;
}
/**
* @return The type of the resource.
*
*/
public String type() {
return this.type;
}
/**
* @return Gets the user name of the credential.
*
*/
public String userName() {
return this.userName;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetCredentialResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String creationTime;
private @Nullable String description;
private String id;
private String lastModifiedTime;
private String name;
private String type;
private String userName;
public Builder() {}
public Builder(GetCredentialResult defaults) {
Objects.requireNonNull(defaults);
this.creationTime = defaults.creationTime;
this.description = defaults.description;
this.id = defaults.id;
this.lastModifiedTime = defaults.lastModifiedTime;
this.name = defaults.name;
this.type = defaults.type;
this.userName = defaults.userName;
}
@CustomType.Setter
public Builder creationTime(String creationTime) {
if (creationTime == null) {
throw new MissingRequiredPropertyException("GetCredentialResult", "creationTime");
}
this.creationTime = creationTime;
return this;
}
@CustomType.Setter
public Builder description(@Nullable String description) {
this.description = description;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetCredentialResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder lastModifiedTime(String lastModifiedTime) {
if (lastModifiedTime == null) {
throw new MissingRequiredPropertyException("GetCredentialResult", "lastModifiedTime");
}
this.lastModifiedTime = lastModifiedTime;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetCredentialResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetCredentialResult", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder userName(String userName) {
if (userName == null) {
throw new MissingRequiredPropertyException("GetCredentialResult", "userName");
}
this.userName = userName;
return this;
}
public GetCredentialResult build() {
final var _resultValue = new GetCredentialResult();
_resultValue.creationTime = creationTime;
_resultValue.description = description;
_resultValue.id = id;
_resultValue.lastModifiedTime = lastModifiedTime;
_resultValue.name = name;
_resultValue.type = type;
_resultValue.userName = userName;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy