AWS SDK for .NET Documentation
WithCode Method (code)
Amazon ► Amazon.EC2.Model ► InstanceState ► WithCode(Decimal)
Did this page help you? Yes No Tell us about it...
Sets the code representing the state of the instance.
Declaration Syntax

C#

    [ObsoleteAttribute("The With methods are obsolete and will be removed in version 2 of the AWS SDK for .NET. See http://aws.amazon.com/sdkfornet/#version2 for more information.")]
    public InstanceState WithCode(
    	decimal code
    )

Parameters

code (Decimal)
  A 16-bit unsigned integer. The high byte is an opaque internal value and should be ignored. The low byte is set based on the state represented. Valid values are: 0 (pending) | 16 (running) | 32 (shutting-down) | 48 (terminated) | 64 (stopping) | 80 (stopped)

Return Value
this instance

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)