@Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getOrganizationId() != null)
            sb.append("OrganizationId: ").append(getOrganizationId()).append(",");
        if (getClientToken() != null)
            sb.append("ClientToken: ").append(getClientToken()).append(",");
        if (getName() != null)
            sb.append("Name: ").append(getName()).append(",");
        if (getDescription() != null)
            sb.append("Description: ").append(getDescription()).append(",");
        if (getEffect() != null)
            sb.append("Effect: ").append(getEffect()).append(",");
        if (getDeviceTypes() != null)
            sb.append("DeviceTypes: ").append(getDeviceTypes()).append(",");
        if (getNotDeviceTypes() != null)
            sb.append("NotDeviceTypes: ").append(getNotDeviceTypes()).append(",");
        if (getDeviceModels() != null)
            sb.append("DeviceModels: ").append(getDeviceModels()).append(",");
        if (getNotDeviceModels() != null)
            sb.append("NotDeviceModels: ").append(getNotDeviceModels()).append(",");
        if (getDeviceOperatingSystems() != null)
            sb.append("DeviceOperatingSystems: ").append(getDeviceOperatingSystems()).append(",");
        if (getNotDeviceOperatingSystems() != null)
            sb.append("NotDeviceOperatingSystems: ").append(getNotDeviceOperatingSystems()).append(",");
        if (getDeviceUserAgents() != null)
            sb.append("DeviceUserAgents: ").append(getDeviceUserAgents()).append(",");
        if (getNotDeviceUserAgents() != null)
            sb.append("NotDeviceUserAgents: ").append(getNotDeviceUserAgents());
        sb.append("}");
        return sb.toString();
    }
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
redacted from this string using a placeholder value.

@return A string representation of this object.

@see java.lang.Object#toString()
aws-java-sdk-workmail/src/main/java/com/amazonaws/services/workmail/model/CreateMobileDeviceAccessRuleRequest.java