Sets the state of the Spot Instance request.
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 SpotInstanceRequest WithState( string state )
Parameters
- state (String)
- The state of the Spot Instance request. Valid values: open | closed | cancelled | failed
Return Value
this instance