public AccessMethod withAccessMethodType(String accessMethodType) {
        setAccessMethodType(accessMethodType);
        return this;
    }
<p>
Specifies the <code>AccessMethod</code>.
</p>

@param accessMethodType
       Specifies the <code>AccessMethod</code>.
@return Returns a reference to this object so that method calls can be chained together.
@see AccessMethodType
aws-java-sdk-acmpca/src/main/java/com/amazonaws/services/acmpca/model/AccessMethod.java