
com.pulumi.aws.resourceexplorer.outputs.SearchResource 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.aws.resourceexplorer.outputs;
import com.pulumi.aws.resourceexplorer.outputs.SearchResourceProperty;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class SearchResource {
/**
* @return Amazon resource name of resource.
*
*/
private String arn;
/**
* @return The date and time that the information about this resource property was last updated.
*
*/
private String lastReportedAt;
/**
* @return Amazon Web Services account that owns the resource.
*
*/
private String owningAccountId;
/**
* @return Structure with additional type-specific details about the resource. See `properties` below.
*
*/
private List properties;
/**
* @return Amazon Web Services Region in which the resource was created and exists.
*
*/
private String region;
/**
* @return Type of the resource.
*
*/
private String resourceType;
/**
* @return Amazon Web Service that owns the resource and is responsible for creating and updating it.
*
*/
private String service;
private SearchResource() {}
/**
* @return Amazon resource name of resource.
*
*/
public String arn() {
return this.arn;
}
/**
* @return The date and time that the information about this resource property was last updated.
*
*/
public String lastReportedAt() {
return this.lastReportedAt;
}
/**
* @return Amazon Web Services account that owns the resource.
*
*/
public String owningAccountId() {
return this.owningAccountId;
}
/**
* @return Structure with additional type-specific details about the resource. See `properties` below.
*
*/
public List properties() {
return this.properties;
}
/**
* @return Amazon Web Services Region in which the resource was created and exists.
*
*/
public String region() {
return this.region;
}
/**
* @return Type of the resource.
*
*/
public String resourceType() {
return this.resourceType;
}
/**
* @return Amazon Web Service that owns the resource and is responsible for creating and updating it.
*
*/
public String service() {
return this.service;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(SearchResource defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String arn;
private String lastReportedAt;
private String owningAccountId;
private List properties;
private String region;
private String resourceType;
private String service;
public Builder() {}
public Builder(SearchResource defaults) {
Objects.requireNonNull(defaults);
this.arn = defaults.arn;
this.lastReportedAt = defaults.lastReportedAt;
this.owningAccountId = defaults.owningAccountId;
this.properties = defaults.properties;
this.region = defaults.region;
this.resourceType = defaults.resourceType;
this.service = defaults.service;
}
@CustomType.Setter
public Builder arn(String arn) {
if (arn == null) {
throw new MissingRequiredPropertyException("SearchResource", "arn");
}
this.arn = arn;
return this;
}
@CustomType.Setter
public Builder lastReportedAt(String lastReportedAt) {
if (lastReportedAt == null) {
throw new MissingRequiredPropertyException("SearchResource", "lastReportedAt");
}
this.lastReportedAt = lastReportedAt;
return this;
}
@CustomType.Setter
public Builder owningAccountId(String owningAccountId) {
if (owningAccountId == null) {
throw new MissingRequiredPropertyException("SearchResource", "owningAccountId");
}
this.owningAccountId = owningAccountId;
return this;
}
@CustomType.Setter
public Builder properties(List properties) {
if (properties == null) {
throw new MissingRequiredPropertyException("SearchResource", "properties");
}
this.properties = properties;
return this;
}
public Builder properties(SearchResourceProperty... properties) {
return properties(List.of(properties));
}
@CustomType.Setter
public Builder region(String region) {
if (region == null) {
throw new MissingRequiredPropertyException("SearchResource", "region");
}
this.region = region;
return this;
}
@CustomType.Setter
public Builder resourceType(String resourceType) {
if (resourceType == null) {
throw new MissingRequiredPropertyException("SearchResource", "resourceType");
}
this.resourceType = resourceType;
return this;
}
@CustomType.Setter
public Builder service(String service) {
if (service == null) {
throw new MissingRequiredPropertyException("SearchResource", "service");
}
this.service = service;
return this;
}
public SearchResource build() {
final var _resultValue = new SearchResource();
_resultValue.arn = arn;
_resultValue.lastReportedAt = lastReportedAt;
_resultValue.owningAccountId = owningAccountId;
_resultValue.properties = properties;
_resultValue.region = region;
_resultValue.resourceType = resourceType;
_resultValue.service = service;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy