com.pulumi.aws.appmesh.outputs.VirtualNodeSpecServiceDiscoveryAwsCloudMap Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud 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.aws.appmesh.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class VirtualNodeSpecServiceDiscoveryAwsCloudMap {
/**
* @return String map that contains attributes with values that you can use to filter instances by any custom attribute that you specified when you registered the instance. Only instances that match all of the specified key/value pairs will be returned.
*
*/
private @Nullable Map attributes;
/**
* @return Name of the AWS Cloud Map namespace to use.
* Use the `aws.servicediscovery.HttpNamespace` resource to configure a Cloud Map namespace. Must be between 1 and 1024 characters in length.
*
*/
private String namespaceName;
/**
* @return Name of the AWS Cloud Map service to use. Use the `aws.servicediscovery.Service` resource to configure a Cloud Map service. Must be between 1 and 1024 characters in length.
*
*/
private String serviceName;
private VirtualNodeSpecServiceDiscoveryAwsCloudMap() {}
/**
* @return String map that contains attributes with values that you can use to filter instances by any custom attribute that you specified when you registered the instance. Only instances that match all of the specified key/value pairs will be returned.
*
*/
public Map attributes() {
return this.attributes == null ? Map.of() : this.attributes;
}
/**
* @return Name of the AWS Cloud Map namespace to use.
* Use the `aws.servicediscovery.HttpNamespace` resource to configure a Cloud Map namespace. Must be between 1 and 1024 characters in length.
*
*/
public String namespaceName() {
return this.namespaceName;
}
/**
* @return Name of the AWS Cloud Map service to use. Use the `aws.servicediscovery.Service` resource to configure a Cloud Map service. Must be between 1 and 1024 characters in length.
*
*/
public String serviceName() {
return this.serviceName;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(VirtualNodeSpecServiceDiscoveryAwsCloudMap defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Map attributes;
private String namespaceName;
private String serviceName;
public Builder() {}
public Builder(VirtualNodeSpecServiceDiscoveryAwsCloudMap defaults) {
Objects.requireNonNull(defaults);
this.attributes = defaults.attributes;
this.namespaceName = defaults.namespaceName;
this.serviceName = defaults.serviceName;
}
@CustomType.Setter
public Builder attributes(@Nullable Map attributes) {
this.attributes = attributes;
return this;
}
@CustomType.Setter
public Builder namespaceName(String namespaceName) {
if (namespaceName == null) {
throw new MissingRequiredPropertyException("VirtualNodeSpecServiceDiscoveryAwsCloudMap", "namespaceName");
}
this.namespaceName = namespaceName;
return this;
}
@CustomType.Setter
public Builder serviceName(String serviceName) {
if (serviceName == null) {
throw new MissingRequiredPropertyException("VirtualNodeSpecServiceDiscoveryAwsCloudMap", "serviceName");
}
this.serviceName = serviceName;
return this;
}
public VirtualNodeSpecServiceDiscoveryAwsCloudMap build() {
final var _resultValue = new VirtualNodeSpecServiceDiscoveryAwsCloudMap();
_resultValue.attributes = attributes;
_resultValue.namespaceName = namespaceName;
_resultValue.serviceName = serviceName;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy