Class ServiceRevision

    • Method Detail

      • serviceRevisionArn

        public final String serviceRevisionArn()

        The ARN of the service revision.

        Returns:
        The ARN of the service revision.
      • serviceArn

        public final String serviceArn()

        The ARN of the service for the service revision.

        Returns:
        The ARN of the service for the service revision.
      • clusterArn

        public final String clusterArn()

        The ARN of the cluster that hosts the service.

        Returns:
        The ARN of the cluster that hosts the service.
      • taskDefinition

        public final String taskDefinition()

        The task definition the service revision uses.

        Returns:
        The task definition the service revision uses.
      • hasCapacityProviderStrategy

        public final boolean hasCapacityProviderStrategy()
        For responses, this returns true if the service returned a value for the CapacityProviderStrategy property. This DOES NOT check that the value is non-empty (for which, you should check the isEmpty() method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
      • capacityProviderStrategy

        public final List<CapacityProviderStrategyItem> capacityProviderStrategy()

        The capacity provider strategy the service revision uses.

        Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

        This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasCapacityProviderStrategy() method.

        Returns:
        The capacity provider strategy the service revision uses.
      • launchType

        public final LaunchType launchType()

        The launch type the service revision uses.

        If the service returns an enum value that is not available in the current SDK version, launchType will return LaunchType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from launchTypeAsString().

        Returns:
        The launch type the service revision uses.
        See Also:
        LaunchType
      • launchTypeAsString

        public final String launchTypeAsString()

        The launch type the service revision uses.

        If the service returns an enum value that is not available in the current SDK version, launchType will return LaunchType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from launchTypeAsString().

        Returns:
        The launch type the service revision uses.
        See Also:
        LaunchType
      • platformVersion

        public final String platformVersion()

        For the Fargate launch type, the platform version the service revision uses.

        Returns:
        For the Fargate launch type, the platform version the service revision uses.
      • platformFamily

        public final String platformFamily()

        The platform family the service revision uses.

        Returns:
        The platform family the service revision uses.
      • hasLoadBalancers

        public final boolean hasLoadBalancers()
        For responses, this returns true if the service returned a value for the LoadBalancers property. This DOES NOT check that the value is non-empty (for which, you should check the isEmpty() method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
      • loadBalancers

        public final List<LoadBalancer> loadBalancers()

        The load balancers the service revision uses.

        Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

        This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasLoadBalancers() method.

        Returns:
        The load balancers the service revision uses.
      • hasServiceRegistries

        public final boolean hasServiceRegistries()
        For responses, this returns true if the service returned a value for the ServiceRegistries property. This DOES NOT check that the value is non-empty (for which, you should check the isEmpty() method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
      • serviceRegistries

        public final List<ServiceRegistry> serviceRegistries()

        The service registries (for Service Discovery) the service revision uses.

        Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

        This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasServiceRegistries() method.

        Returns:
        The service registries (for Service Discovery) the service revision uses.
      • networkConfiguration

        public final NetworkConfiguration networkConfiguration()
        Returns the value of the NetworkConfiguration property for this object.
        Returns:
        The value of the NetworkConfiguration property for this object.
      • hasContainerImages

        public final boolean hasContainerImages()
        For responses, this returns true if the service returned a value for the ContainerImages property. This DOES NOT check that the value is non-empty (for which, you should check the isEmpty() method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
      • containerImages

        public final List<ContainerImage> containerImages()

        The container images the service revision uses.

        Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

        This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasContainerImages() method.

        Returns:
        The container images the service revision uses.
      • guardDutyEnabled

        public final Boolean guardDutyEnabled()

        Indicates whether Runtime Monitoring is turned on.

        Returns:
        Indicates whether Runtime Monitoring is turned on.
      • serviceConnectConfiguration

        public final ServiceConnectConfiguration serviceConnectConfiguration()
        Returns the value of the ServiceConnectConfiguration property for this object.
        Returns:
        The value of the ServiceConnectConfiguration property for this object.
      • hasVolumeConfigurations

        public final boolean hasVolumeConfigurations()
        For responses, this returns true if the service returned a value for the VolumeConfigurations property. This DOES NOT check that the value is non-empty (for which, you should check the isEmpty() method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
      • volumeConfigurations

        public final List<ServiceVolumeConfiguration> volumeConfigurations()

        The volumes that are configured at deployment that the service revision uses.

        Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

        This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasVolumeConfigurations() method.

        Returns:
        The volumes that are configured at deployment that the service revision uses.
      • fargateEphemeralStorage

        public final DeploymentEphemeralStorage fargateEphemeralStorage()
        Returns the value of the FargateEphemeralStorage property for this object.
        Returns:
        The value of the FargateEphemeralStorage property for this object.
      • createdAt

        public final Instant createdAt()

        The time that the service revision was created. The format is yyyy-mm-dd HH:mm:ss.SSSSS.

        Returns:
        The time that the service revision was created. The format is yyyy-mm-dd HH:mm:ss.SSSSS.
      • hasVpcLatticeConfigurations

        public final boolean hasVpcLatticeConfigurations()
        For responses, this returns true if the service returned a value for the VpcLatticeConfigurations property. This DOES NOT check that the value is non-empty (for which, you should check the isEmpty() method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
      • vpcLatticeConfigurations

        public final List<VpcLatticeConfiguration> vpcLatticeConfigurations()

        The VPC Lattice configuration for the service revision.

        Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

        This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasVpcLatticeConfigurations() method.

        Returns:
        The VPC Lattice configuration for the service revision.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • 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.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)