@Generated(value="by gapic-generator-java") public class InstanceName extends Object implements com.google.api.resourcenames.ResourceName
| Modifier and Type | Class and Description |
|---|---|
static class |
InstanceName.Builder
Builder for projects/{project}/zones/{zone}/instances/{instance}.
|
static class |
InstanceName.ProjectLocationInstanceBuilder
Builder for projects/{project}/locations/{location}/instances/{instance}.
|
| Modifier | Constructor and Description |
|---|---|
protected |
InstanceName()
Deprecated.
|
@Deprecated protected InstanceName()
public String getProject()
public String getZone()
public String getInstance()
public String getLocation()
public static InstanceName.Builder newBuilder()
@BetaApi(value="The per-pattern Builders are not stable yet and may be changed in the future.") public static InstanceName.Builder newProjectZoneInstanceBuilder()
@BetaApi(value="The per-pattern Builders are not stable yet and may be changed in the future.") public static InstanceName.ProjectLocationInstanceBuilder newProjectLocationInstanceBuilder()
public InstanceName.Builder toBuilder()
public static InstanceName of(String project, String zone, String instance)
@BetaApi(value="The static create methods are not stable yet and may be changed in the future.") public static InstanceName ofProjectZoneInstanceName(String project, String zone, String instance)
@BetaApi(value="The static create methods are not stable yet and may be changed in the future.") public static InstanceName ofProjectLocationInstanceName(String project, String location, String instance)
@BetaApi(value="The static format methods are not stable yet and may be changed in the future.") public static String formatProjectZoneInstanceName(String project, String zone, String instance)
@BetaApi(value="The static format methods are not stable yet and may be changed in the future.") public static String formatProjectLocationInstanceName(String project, String location, String instance)
public static InstanceName parse(String formattedString)
public static List<InstanceName> parseList(List<String> formattedStrings)
public static List<String> toStringList(List<InstanceName> values)
public static boolean isParsableFrom(String formattedString)
public Map<String,String> getFieldValuesMap()
getFieldValuesMap in interface com.google.api.resourcenames.ResourceNamepublic String getFieldValue(String fieldName)
getFieldValue in interface com.google.api.resourcenames.ResourceNameCopyright © 2023 Google LLC. All rights reserved.