Class AppUpdateSourceConfigRequest
java.lang.Object
software.amazon.awssdk.services.amplifygen3.model.AppUpdateSourceConfigRequest
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AppUpdateSourceConfigRequest.Builder,AppUpdateSourceConfigRequest>
@Generated("software.amazon.awssdk:codegen")
public final class AppUpdateSourceConfigRequest
extends Object
implements SdkPojo, Serializable, ToCopyableBuilder<AppUpdateSourceConfigRequest.Builder,AppUpdateSourceConfigRequest>
The source repository configuration to update for a Gen 3 app.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic enum -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.static AppUpdateSourceConfigRequestfromGitHubSource(Consumer<AppUpdateGitHubSourceRequest.Builder> gitHubSource) Create an instance of this class withgitHubSource()initialized to the given value.static AppUpdateSourceConfigRequestfromGitHubSource(AppUpdateGitHubSourceRequest gitHubSource) Create an instance of this class withgitHubSource()initialized to the given value.static AppUpdateSourceConfigRequestfromGitLabSource(Consumer<AppUpdateGitLabSourceRequest.Builder> gitLabSource) Create an instance of this class withgitLabSource()initialized to the given value.static AppUpdateSourceConfigRequestfromGitLabSource(AppUpdateGitLabSourceRequest gitLabSource) Create an instance of this class withgitLabSource()initialized to the given value.static AppUpdateSourceConfigRequestfromNoSource(Consumer<NoSource.Builder> noSource) Create an instance of this class withnoSource()initialized to the given value.static AppUpdateSourceConfigRequestfromNoSource(NoSource noSource) Create an instance of this class withnoSource()initialized to the given value.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) The GitHub source repository settings.The GitLab source repository settings.final inthashCode()final NoSourcenoSource()Removes the configured source repository.static Class<? extends AppUpdateSourceConfigRequest.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.type()Retrieve an enum value representing which member of this object is populated.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
gitHubSource
The GitHub source repository settings.
- Returns:
- The GitHub source repository settings.
-
gitLabSource
The GitLab source repository settings.
- Returns:
- The GitLab source repository settings.
-
noSource
Removes the configured source repository.
- Returns:
- Removes the configured source repository.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<AppUpdateSourceConfigRequest.Builder,AppUpdateSourceConfigRequest> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
fromGitHubSource
public static AppUpdateSourceConfigRequest fromGitHubSource(AppUpdateGitHubSourceRequest gitHubSource) Create an instance of this class withgitHubSource()initialized to the given value.The GitHub source repository settings.
- Parameters:
gitHubSource- The GitHub source repository settings.
-
fromGitHubSource
public static AppUpdateSourceConfigRequest fromGitHubSource(Consumer<AppUpdateGitHubSourceRequest.Builder> gitHubSource) Create an instance of this class withgitHubSource()initialized to the given value.The GitHub source repository settings.
- Parameters:
gitHubSource- The GitHub source repository settings.
-
fromGitLabSource
public static AppUpdateSourceConfigRequest fromGitLabSource(AppUpdateGitLabSourceRequest gitLabSource) Create an instance of this class withgitLabSource()initialized to the given value.The GitLab source repository settings.
- Parameters:
gitLabSource- The GitLab source repository settings.
-
fromGitLabSource
public static AppUpdateSourceConfigRequest fromGitLabSource(Consumer<AppUpdateGitLabSourceRequest.Builder> gitLabSource) Create an instance of this class withgitLabSource()initialized to the given value.The GitLab source repository settings.
- Parameters:
gitLabSource- The GitLab source repository settings.
-
fromNoSource
Create an instance of this class withnoSource()initialized to the given value.Removes the configured source repository.
- Parameters:
noSource- Removes the configured source repository.
-
fromNoSource
Create an instance of this class withnoSource()initialized to the given value.Removes the configured source repository.
- Parameters:
noSource- Removes the configured source repository.
-
type
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beAppUpdateSourceConfigRequest.Type.UNKNOWN_TO_SDK_VERSIONif the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will beAppUpdateSourceConfigRequest.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set. -
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-