Class SourceCode
- java.lang.Object
-
- software.amazon.awssdk.services.migrationhubstrategy.model.SourceCode
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<SourceCode.Builder,SourceCode>
@Generated("software.amazon.awssdk:codegen") public final class SourceCode extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SourceCode.Builder,SourceCode>
Object containing source code information that is linked to an application component.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSourceCode.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SourceCode.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringlocation()The repository name for the source code.StringprojectName()The name of the project.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends SourceCode.Builder>serializableBuilderClass()StringsourceVersion()The branch of the source code.SourceCode.BuildertoBuilder()StringtoString()Returns a string representation of this object.VersionControlversionControl()The type of repository to use for the source code.StringversionControlAsString()The type of repository to use for the source code.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
location
public final String location()
The repository name for the source code.
- Returns:
- The repository name for the source code.
-
projectName
public final String projectName()
The name of the project.
- Returns:
- The name of the project.
-
sourceVersion
public final String sourceVersion()
The branch of the source code.
- Returns:
- The branch of the source code.
-
versionControl
public final VersionControl versionControl()
The type of repository to use for the source code.
If the service returns an enum value that is not available in the current SDK version,
versionControlwill returnVersionControl.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromversionControlAsString().- Returns:
- The type of repository to use for the source code.
- See Also:
VersionControl
-
versionControlAsString
public final String versionControlAsString()
The type of repository to use for the source code.
If the service returns an enum value that is not available in the current SDK version,
versionControlwill returnVersionControl.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromversionControlAsString().- Returns:
- The type of repository to use for the source code.
- See Also:
VersionControl
-
toBuilder
public SourceCode.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<SourceCode.Builder,SourceCode>
-
builder
public static SourceCode.Builder builder()
-
serializableBuilderClass
public static Class<? extends SourceCode.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-