Class AlertPolicyName (3.43.0)

public class AlertPolicyName implements ResourceName

Inheritance

Object > AlertPolicyName

Implements

com.google.api.resourcenames.ResourceName

Static Methods

format(String project, String alertPolicy)

public static String format(String project, String alertPolicy)
Parameters
Name Description
project String
alertPolicy String
Returns
Type Description
String

formatFolderAlertPolicyName(String folder, String alertPolicy)

public static String formatFolderAlertPolicyName(String folder, String alertPolicy)
Parameters
Name Description
folder String
alertPolicy String
Returns
Type Description
String

formatOrganizationAlertPolicyName(String organization, String alertPolicy)

public static String formatOrganizationAlertPolicyName(String organization, String alertPolicy)
Parameters
Name Description
organization String
alertPolicy String
Returns
Type Description
String

formatProjectAlertPolicyName(String project, String alertPolicy)

public static String formatProjectAlertPolicyName(String project, String alertPolicy)
Parameters
Name Description
project String
alertPolicy String
Returns
Type Description
String

isParsableFrom(String formattedString)

public static boolean isParsableFrom(String formattedString)
Parameter
Name Description
formattedString String
Returns
Type Description
boolean

newBuilder()

public static AlertPolicyName.Builder newBuilder()
Returns
Type Description
AlertPolicyName.Builder

newFolderAlertPolicyBuilder()

public static AlertPolicyName.FolderAlertPolicyBuilder newFolderAlertPolicyBuilder()
Returns
Type Description
AlertPolicyName.FolderAlertPolicyBuilder

newOrganizationAlertPolicyBuilder()

public static AlertPolicyName.OrganizationAlertPolicyBuilder newOrganizationAlertPolicyBuilder()
Returns
Type Description
AlertPolicyName.OrganizationAlertPolicyBuilder

newProjectAlertPolicyBuilder()

public static AlertPolicyName.Builder newProjectAlertPolicyBuilder()
Returns
Type Description
AlertPolicyName.Builder

of(String project, String alertPolicy)

public static AlertPolicyName of(String project, String alertPolicy)
Parameters
Name Description
project String
alertPolicy String
Returns
Type Description
AlertPolicyName

ofFolderAlertPolicyName(String folder, String alertPolicy)

public static AlertPolicyName ofFolderAlertPolicyName(String folder, String alertPolicy)
Parameters
Name Description
folder String
alertPolicy String
Returns
Type Description
AlertPolicyName

ofOrganizationAlertPolicyName(String organization, String alertPolicy)

public static AlertPolicyName ofOrganizationAlertPolicyName(String organization, String alertPolicy)
Parameters
Name Description
organization String
alertPolicy String
Returns
Type Description
AlertPolicyName

ofProjectAlertPolicyName(String project, String alertPolicy)

public static AlertPolicyName ofProjectAlertPolicyName(String project, String alertPolicy)
Parameters
Name Description
project String
alertPolicy String
Returns
Type Description
AlertPolicyName

parse(String formattedString)

public static AlertPolicyName parse(String formattedString)
Parameter
Name Description
formattedString String
Returns
Type Description
AlertPolicyName

parseList(List<String> formattedStrings)

public static List<AlertPolicyName> parseList(List<String> formattedStrings)
Parameter
Name Description
formattedStrings List<String>
Returns
Type Description
List<AlertPolicyName>

toStringList(List<AlertPolicyName> values)

public static List<String> toStringList(List<AlertPolicyName> values)
Parameter
Name Description
values List<AlertPolicyName>
Returns
Type Description
List<String>

Constructors

AlertPolicyName() (deprecated)

protected AlertPolicyName()

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
Name Description
o Object
Returns
Type Description
boolean
Overrides

getAlertPolicy()

public String getAlertPolicy()
Returns
Type Description
String

getFieldValue(String fieldName)

public String getFieldValue(String fieldName)
Parameter
Name Description
fieldName String
Returns
Type Description
String

getFieldValuesMap()

public Map<String,String> getFieldValuesMap()
Returns
Type Description
Map<String,String>

getFolder()

public String getFolder()
Returns
Type Description
String

getOrganization()

public String getOrganization()
Returns
Type Description
String

getProject()

public String getProject()
Returns
Type Description
String

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

toBuilder()

public AlertPolicyName.Builder toBuilder()
Returns
Type Description
AlertPolicyName.Builder

toString()

public String toString()
Returns
Type Description
String
Overrides