public WorkspaceDescription withPermissionType(PermissionType permissionType) {
        this.permissionType = permissionType.toString();
        return this;
    }
<p>
If this is <code>SERVICE_MANAGED</code>, and the workplace was created through the Amazon Managed Grafana
console, then Amazon Managed Grafana automatically creates the IAM roles and provisions the permissions that the
workspace needs to use Amazon Web Services data sources and notification channels.
</p>
<p>
If this is <code>CUSTOMER_MANAGED</code>, you must manage those roles and permissions yourself.
</p>
<p>
If you are working with a workspace in a member account of an organization and that account is not a delegated
administrator account, and you want the workspace to access data sources in other Amazon Web Services accounts in
the organization, this parameter must be set to <code>CUSTOMER_MANAGED</code>.
</p>
<p>
For more information about converting between customer and service managed, see <a
href="https://docs.aws.amazon.com/grafana/latest/userguide/AMG-datasource-and-notification.html">Managing
permissions for data sources and notification channels</a>. For more information about the roles and permissions
that must be managed for customer managed workspaces, see <a
href="https://docs.aws.amazon.com/grafana/latest/userguide/AMG-manage-permissions.html">Amazon Managed Grafana
permissions and policies for Amazon Web Services data sources and notification channels</a>
</p>

@param permissionType
       If this is <code>SERVICE_MANAGED</code>, and the workplace was created through the Amazon Managed Grafana
       console, then Amazon Managed Grafana automatically creates the IAM roles and provisions the permissions
       that the workspace needs to use Amazon Web Services data sources and notification channels.</p>
       <p>
       If this is <code>CUSTOMER_MANAGED</code>, you must manage those roles and permissions yourself.
       </p>
       <p>
       If you are working with a workspace in a member account of an organization and that account is not a
       delegated administrator account, and you want the workspace to access data sources in other Amazon Web
       Services accounts in the organization, this parameter must be set to <code>CUSTOMER_MANAGED</code>.
       </p>
       <p>
       For more information about converting between customer and service managed, see <a
       href="https://docs.aws.amazon.com/grafana/latest/userguide/AMG-datasource-and-notification.html">Managing
       permissions for data sources and notification channels</a>. For more information about the roles and
       permissions that must be managed for customer managed workspaces, see <a
       href="https://docs.aws.amazon.com/grafana/latest/userguide/AMG-manage-permissions.html">Amazon Managed
       Grafana permissions and policies for Amazon Web Services data sources and notification channels</a>
@return Returns a reference to this object so that method calls can be chained together.
@see PermissionType
aws-java-sdk-managedgrafana/src/main/java/com/amazonaws/services/managedgrafana/model/WorkspaceDescription.java