public GetPermissionResult withPermission(ResourceSharePermissionDetail permission) {
        setPermission(permission);
        return this;
    }
<p>
An object with details about the permission.
</p>

@param permission
       An object with details about the permission.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ram/src/main/java/com/amazonaws/services/ram/model/GetPermissionResult.java