Class SourceName
- java.lang.Object
-
- com.google.cloud.securitycenter.v1p1beta1.SourceName
-
- All Implemented Interfaces:
com.google.api.resourcenames.ResourceName
@Generated("by gapic-generator-java") public class SourceName extends Object implements com.google.api.resourcenames.ResourceName
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SourceName.Builder
Builder for organizations/{organization}/sources/{source}.static class
SourceName.FolderSourceBuilder
Builder for folders/{folder}/sources/{source}.static class
SourceName.ProjectSourceBuilder
Builder for projects/{project}/sources/{source}.
-
Constructor Summary
Constructors Modifier Constructor Description protected
SourceName()
Deprecated.
-
Method Summary
-
-
-
Constructor Detail
-
SourceName
@Deprecated protected SourceName()
Deprecated.
-
-
Method Detail
-
getOrganization
public String getOrganization()
-
getSource
public String getSource()
-
getFolder
public String getFolder()
-
getProject
public String getProject()
-
newBuilder
public static SourceName.Builder newBuilder()
-
newOrganizationSourceBuilder
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") public static SourceName.Builder newOrganizationSourceBuilder()
-
newFolderSourceBuilder
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") public static SourceName.FolderSourceBuilder newFolderSourceBuilder()
-
newProjectSourceBuilder
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") public static SourceName.ProjectSourceBuilder newProjectSourceBuilder()
-
toBuilder
public SourceName.Builder toBuilder()
-
of
public static SourceName of(String organization, String source)
-
ofOrganizationSourceName
@BetaApi("The static create methods are not stable yet and may be changed in the future.") public static SourceName ofOrganizationSourceName(String organization, String source)
-
ofFolderSourceName
@BetaApi("The static create methods are not stable yet and may be changed in the future.") public static SourceName ofFolderSourceName(String folder, String source)
-
ofProjectSourceName
@BetaApi("The static create methods are not stable yet and may be changed in the future.") public static SourceName ofProjectSourceName(String project, String source)
-
formatOrganizationSourceName
@BetaApi("The static format methods are not stable yet and may be changed in the future.") public static String formatOrganizationSourceName(String organization, String source)
-
formatFolderSourceName
@BetaApi("The static format methods are not stable yet and may be changed in the future.") public static String formatFolderSourceName(String folder, String source)
-
formatProjectSourceName
@BetaApi("The static format methods are not stable yet and may be changed in the future.") public static String formatProjectSourceName(String project, String source)
-
parse
public static SourceName parse(String formattedString)
-
parseList
public static List<SourceName> parseList(List<String> formattedStrings)
-
toStringList
public static List<String> toStringList(List<SourceName> values)
-
isParsableFrom
public static boolean isParsableFrom(String formattedString)
-
getFieldValuesMap
public Map<String,String> getFieldValuesMap()
- Specified by:
getFieldValuesMap
in interfacecom.google.api.resourcenames.ResourceName
-
getFieldValue
public String getFieldValue(String fieldName)
- Specified by:
getFieldValue
in interfacecom.google.api.resourcenames.ResourceName
-
-