Class SubscriptionPath

public abstract class SubscriptionPath implements Serializable

A string wrapper representing a subscription. Should be structured like:

projects/<project number>/locations/<cloud zone>/subscriptions/<id>

Inheritance

java.lang.Object > SubscriptionPath

Implements

Serializable

Constructors

SubscriptionPath()

public SubscriptionPath()

Methods

location()

public abstract CloudRegionOrZone location()
Returns
TypeDescription
CloudRegionOrZone

locationPath()

public LocationPath locationPath()
Returns
TypeDescription
LocationPath

name()

public abstract SubscriptionName name()
Returns
TypeDescription
SubscriptionName

newBuilder()

public static SubscriptionPath.Builder newBuilder()

Create a new SubscriptionPath builder.

Returns
TypeDescription
SubscriptionPath.Builder

parse(String path)

public static SubscriptionPath parse(String path)
Parameter
NameDescription
pathString
Returns
TypeDescription
SubscriptionPath
Exceptions
TypeDescription
ApiException

project()

public abstract ProjectIdOrNumber project()
Returns
TypeDescription
ProjectIdOrNumber

toBuilder()

public abstract SubscriptionPath.Builder toBuilder()
Returns
TypeDescription
SubscriptionPath.Builder

toString()

public String toString()
Returns
TypeDescription
String
Overrides