func awsAwsjson11_serializeOpDocumentUpdateServiceInput()

in aws-sdk-go-v2/service/ecs/serializers.go [8028:8146]


func awsAwsjson11_serializeOpDocumentUpdateServiceInput(v *UpdateServiceInput, value smithyjson.Value) error {
	object := value.Object()
	defer object.Close()
	
	if v.CapacityProviderStrategy != nil {
		ok := object.Key("capacityProviderStrategy")
		if err := awsAwsjson11_serializeDocumentCapacityProviderStrategy(v.CapacityProviderStrategy, ok); err != nil {
			return err
		}
	}
	
	if v.Cluster != nil {
		ok := object.Key("cluster")
		ok.String(*v.Cluster)
	}
	
	if v.DeploymentConfiguration != nil {
		ok := object.Key("deploymentConfiguration")
		if err := awsAwsjson11_serializeDocumentDeploymentConfiguration(v.DeploymentConfiguration, ok); err != nil {
			return err
		}
	}
	
	if v.DesiredCount != nil {
		ok := object.Key("desiredCount")
		ok.Integer(*v.DesiredCount)
	}
	
	if v.EnableECSManagedTags != nil {
		ok := object.Key("enableECSManagedTags")
		ok.Boolean(*v.EnableECSManagedTags)
	}
	
	if v.EnableExecuteCommand != nil {
		ok := object.Key("enableExecuteCommand")
		ok.Boolean(*v.EnableExecuteCommand)
	}
	
	if v.ForceNewDeployment {
		ok := object.Key("forceNewDeployment")
		ok.Boolean(v.ForceNewDeployment)
	}
	
	if v.HealthCheckGracePeriodSeconds != nil {
		ok := object.Key("healthCheckGracePeriodSeconds")
		ok.Integer(*v.HealthCheckGracePeriodSeconds)
	}
	
	if v.LoadBalancers != nil {
		ok := object.Key("loadBalancers")
		if err := awsAwsjson11_serializeDocumentLoadBalancers(v.LoadBalancers, ok); err != nil {
			return err
		}
	}
	
	if v.NetworkConfiguration != nil {
		ok := object.Key("networkConfiguration")
		if err := awsAwsjson11_serializeDocumentNetworkConfiguration(v.NetworkConfiguration, ok); err != nil {
			return err
		}
	}
	
	if v.PlacementConstraints != nil {
		ok := object.Key("placementConstraints")
		if err := awsAwsjson11_serializeDocumentPlacementConstraints(v.PlacementConstraints, ok); err != nil {
			return err
		}
	}
	
	if v.PlacementStrategy != nil {
		ok := object.Key("placementStrategy")
		if err := awsAwsjson11_serializeDocumentPlacementStrategies(v.PlacementStrategy, ok); err != nil {
			return err
		}
	}
	
	if v.PlatformVersion != nil {
		ok := object.Key("platformVersion")
		ok.String(*v.PlatformVersion)
	}
	
	if len(v.PropagateTags) > 0 {
		ok := object.Key("propagateTags")
		ok.String(string(v.PropagateTags))
	}
	
	if v.Service != nil {
		ok := object.Key("service")
		ok.String(*v.Service)
	}
	
	if v.ServiceConnectConfiguration != nil {
		ok := object.Key("serviceConnectConfiguration")
		if err := awsAwsjson11_serializeDocumentServiceConnectConfiguration(v.ServiceConnectConfiguration, ok); err != nil {
			return err
		}
	}
	
	if v.ServiceRegistries != nil {
		ok := object.Key("serviceRegistries")
		if err := awsAwsjson11_serializeDocumentServiceRegistries(v.ServiceRegistries, ok); err != nil {
			return err
		}
	}
	
	if v.TaskDefinition != nil {
		ok := object.Key("taskDefinition")
		ok.String(*v.TaskDefinition)
	}
	
	if v.VolumeConfigurations != nil {
		ok := object.Key("volumeConfigurations")
		if err := awsAwsjson11_serializeDocumentServiceVolumeConfigurations(v.VolumeConfigurations, ok); err != nil {
			return err
		}
	}
	
	return nil
}