public CreateLagRequest withRequestMACSec(Boolean requestMACSec) {
        setRequestMACSec(requestMACSec);
        return this;
    }
<p>
Indicates whether the connection will support MAC Security (MACsec).
</p>
<note>
<p>
All connections in the LAG must be capable of supporting MAC Security (MACsec). For information about MAC
Security (MACsec) prerequisties, see <a href=
"https://docs.aws.amazon.com/directconnect/latest/UserGuide/direct-connect-mac-sec-getting-started.html#mac-sec-prerequisites"
>MACsec prerequisties</a> in the <i>Direct Connect User Guide</i>.
</p>
</note>

@param requestMACSec
       Indicates whether the connection will support MAC Security (MACsec).</p> <note>
       <p>
       All connections in the LAG must be capable of supporting MAC Security (MACsec). For information about MAC
       Security (MACsec) prerequisties, see <a href=
       "https://docs.aws.amazon.com/directconnect/latest/UserGuide/direct-connect-mac-sec-getting-started.html#mac-sec-prerequisites"
       >MACsec prerequisties</a> in the <i>Direct Connect User Guide</i>.
       </p>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-directconnect/src/main/java/com/amazonaws/services/directconnect/model/CreateLagRequest.java