Class ComponentDependencyRequirement
- java.lang.Object
-
- software.amazon.awssdk.services.greengrassv2.model.ComponentDependencyRequirement
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ComponentDependencyRequirement.Builder,ComponentDependencyRequirement>
@Generated("software.amazon.awssdk:codegen") public final class ComponentDependencyRequirement extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ComponentDependencyRequirement.Builder,ComponentDependencyRequirement>
Contains information about a component dependency for a Lambda function component.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceComponentDependencyRequirement.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ComponentDependencyRequirement.Builderbuilder()ComponentDependencyTypedependencyType()The type of this dependency.StringdependencyTypeAsString()The type of this dependency.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends ComponentDependencyRequirement.Builder>serializableBuilderClass()ComponentDependencyRequirement.BuildertoBuilder()StringtoString()Returns a string representation of this object.StringversionRequirement()The component version requirement for the component dependency.-
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
-
versionRequirement
public final String versionRequirement()
The component version requirement for the component dependency.
IoT Greengrass V2 uses semantic version constraints. For more information, see Semantic Versioning.
- Returns:
- The component version requirement for the component dependency.
IoT Greengrass V2 uses semantic version constraints. For more information, see Semantic Versioning.
-
dependencyType
public final ComponentDependencyType dependencyType()
The type of this dependency. Choose from the following options:
-
SOFT– The component doesn't restart if the dependency changes state. -
HARD– The component restarts if the dependency changes state.
Default:
HARDIf the service returns an enum value that is not available in the current SDK version,
dependencyTypewill returnComponentDependencyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromdependencyTypeAsString().- Returns:
- The type of this dependency. Choose from the following options:
-
SOFT– The component doesn't restart if the dependency changes state. -
HARD– The component restarts if the dependency changes state.
Default:
HARD -
- See Also:
ComponentDependencyType
-
-
dependencyTypeAsString
public final String dependencyTypeAsString()
The type of this dependency. Choose from the following options:
-
SOFT– The component doesn't restart if the dependency changes state. -
HARD– The component restarts if the dependency changes state.
Default:
HARDIf the service returns an enum value that is not available in the current SDK version,
dependencyTypewill returnComponentDependencyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromdependencyTypeAsString().- Returns:
- The type of this dependency. Choose from the following options:
-
SOFT– The component doesn't restart if the dependency changes state. -
HARD– The component restarts if the dependency changes state.
Default:
HARD -
- See Also:
ComponentDependencyType
-
-
toBuilder
public ComponentDependencyRequirement.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ComponentDependencyRequirement.Builder,ComponentDependencyRequirement>
-
builder
public static ComponentDependencyRequirement.Builder builder()
-
serializableBuilderClass
public static Class<? extends ComponentDependencyRequirement.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.
-
-