public void setAppProtocol(String appProtocol) {
        this.appProtocol = appProtocol;
    }
<p>
The application protocol that's used for the port mapping. This parameter only applies to Service Connect. We
recommend that you set this parameter to be consistent with the protocol that your application uses. If you set
this parameter, Amazon ECS adds protocol-specific connection handling to the Service Connect proxy. If you set
this parameter, Amazon ECS adds protocol-specific telemetry in the Amazon ECS console and CloudWatch.
</p>
<p>
If you don't set a value for this parameter, then TCP is used. However, Amazon ECS doesn't add protocol-specific
telemetry for TCP.
</p>
<p>
<code>appProtocol</code> is immutable in a Service Connect service. Updating this field requires a service
deletion and redeployment.
</p>
<p>
Tasks that run in a namespace can use short names to connect to services in the namespace. Tasks can connect to
services across all of the clusters in the namespace. Tasks connect through a managed proxy container that
collects logs and metrics for increased visibility. Only the tasks that Amazon ECS services create are supported
with Service Connect. For more information, see <a
href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-connect.html">Service Connect</a> in
the <i>Amazon Elastic Container Service Developer Guide</i>.
</p>

@param appProtocol
       The application protocol that's used for the port mapping. This parameter only applies to Service Connect.
       We recommend that you set this parameter to be consistent with the protocol that your application uses. If
       you set this parameter, Amazon ECS adds protocol-specific connection handling to the Service Connect
       proxy. If you set this parameter, Amazon ECS adds protocol-specific telemetry in the Amazon ECS console
       and CloudWatch.</p>
       <p>
       If you don't set a value for this parameter, then TCP is used. However, Amazon ECS doesn't add
       protocol-specific telemetry for TCP.
       </p>
       <p>
       <code>appProtocol</code> is immutable in a Service Connect service. Updating this field requires a service
       deletion and redeployment.
       </p>
       <p>
       Tasks that run in a namespace can use short names to connect to services in the namespace. Tasks can
       connect to services across all of the clusters in the namespace. Tasks connect through a managed proxy
       container that collects logs and metrics for increased visibility. Only the tasks that Amazon ECS services
       create are supported with Service Connect. For more information, see <a
       href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-connect.html">Service
       Connect</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.
@see ApplicationProtocol
aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/model/PortMapping.java